don't let 3pid invites mark room as unread

fixes https://github.com/vector-im/riot-web/issues/5698
This commit is contained in:
Matthew Hodgson 2018-02-21 23:51:35 +00:00
parent 4a3be82828
commit 70d2ffc850

View file

@ -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') {