From 70d2ffc850ae590749ac730913991cd933d6775c Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 21 Feb 2018 23:51:35 +0000 Subject: [PATCH] don't let 3pid invites mark room as unread fixes https://github.com/vector-im/riot-web/issues/5698 --- src/Unread.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Unread.js b/src/Unread.js index 383b5c2e5a..55e60f2a9a 100644 --- a/src/Unread.js +++ b/src/Unread.js @@ -28,6 +28,8 @@ module.exports = { return false; } else if (ev.getType() == 'm.room.member') { return false; + } else if (ev.getType() == 'm.room.third_party_invite') { + return false; } else if (ev.getType() == 'm.call.answer' || ev.getType() == 'm.call.hangup') { return false; } else if (ev.getType == 'm.room.message' && ev.getContent().msgtype == 'm.notify') {