mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
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 <tulir@maunium.net>
This commit is contained in:
parent
a8f5b7ebae
commit
188bd548c6
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue