Don't mark a room as unread when redacted event is present

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2021-05-18 00:01:08 -05:00
parent b06514273f
commit 3a2c1af70c
No known key found for this signature in database
GPG Key ID: 37419210002890EF

View File

@ -40,6 +40,8 @@ export function eventTriggersUnreadCount(ev) {
return false; return false;
} else if (ev.getType() == 'm.room.server_acl') { } else if (ev.getType() == 'm.room.server_acl') {
return false; return false;
} else if (ev.isRedacted()) {
return false;
} }
return haveTileForEvent(ev); return haveTileForEvent(ev);
} }