diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index adb2ba14b5..97a699292d 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -639,7 +639,9 @@ module.exports = React.createClass({ var rooms = MatrixClientPeg.get().getRooms(); for (var i = 0; i < rooms.length; ++i) { - if (rooms[i].unread_notification_count) { + if (rooms[i].hasMembershipState(MatrixClientPeg.get().credentials.userId, 'invite')) { + ++notifCount; + } else if (rooms[i].unread_notification_count) { notifCount += rooms[i].unread_notification_count; } }