ignore voip answer/hangup in unread events - fixes https://github.com/vector-im/riot-web/issues/3827

This commit is contained in:
Matthew Hodgson 2017-05-15 02:18:18 +01:00
parent 82092dc2d8
commit 5c0c49e1f6

View file

@ -25,7 +25,9 @@ module.exports = {
eventTriggersUnreadCount: function(ev) {
if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) {
return false;
} else if (ev.getType() == "m.room.member") {
} else if (ev.getType() == 'm.room.member') {
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') {
return false;