Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Let m.notice messages mark a room as unread
Browse files Browse the repository at this point in the history
The typescript conversion of Unread.js in #6241
fixed a 6-year-old typo and stopped messages with msgtype=m.notice from being
counted as unread messages. This makes it very difficult to use rooms dedicated
for bot notices (like RSS or GitHub webhook bots).

Signed-off-by: Tulir Asokan <[email protected]>
  • Loading branch information
tulir committed Jun 28, 2021
1 parent a8f5b7e commit 188bd54
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Unread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ export function eventTriggersUnreadCount(ev: MatrixEvent): boolean {
case EventType.RoomCanonicalAlias:
case EventType.RoomServerAcl:
return false;

case EventType.RoomMessage:
if (ev.getContent().msgtype === MsgType.Notice) {
return false;
}
break;
}

if (ev.isRedacted()) return false;
Expand Down

0 comments on commit 188bd54

Please sign in to comment.