From d0ce7997982dbefb4585bc5dcb8d3700dbe06a5f Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Tue, 1 Oct 2019 15:08:34 -0500 Subject: [PATCH] Don't mark a room as unread when someone adds an alias https://github.com/vector-im/riot-web/issues/2321#issuecomment-508526884 Signed-off-by: Aaron Raimist --- src/Unread.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Unread.js b/src/Unread.js index ce6784dc58..01617dc1ac 100644 --- a/src/Unread.js +++ b/src/Unread.js @@ -34,6 +34,8 @@ module.exports = { return false; } else if (ev.getType() == 'm.room.message' && ev.getContent().msgtype == 'm.notify') { return false; + } else if (ev.getType() == 'm.room.aliases' || ev.getType() == 'm.room.canonical_alias') { + return false; } const EventTile = sdk.getComponent('rooms.EventTile'); return EventTile.haveTileForEvent(ev);