From 188bd548c642c32ad5cd8a9fb025a2c7c89bf0ff Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 28 Jun 2021 20:51:14 +0300 Subject: [PATCH] Let m.notice messages mark a room as unread The typescript conversion of Unread.js in matrix-org/matrix-react-sdk#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 --- src/Unread.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Unread.ts b/src/Unread.ts index b733f4175a..1f909630b0 100644 --- a/src/Unread.ts +++ b/src/Unread.ts @@ -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;