From 67ff769962b9b95e4e68417eee45adfc40596fc0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 13 Jan 2016 13:00:03 +0000 Subject: [PATCH] Include invites in the badge count --- src/components/structures/MatrixChat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }