mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-04 03:51:25 +02:00
Include invites in the badge count
This commit is contained in:
parent
99abd58f1a
commit
67ff769962
@ -639,7 +639,9 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
var rooms = MatrixClientPeg.get().getRooms();
|
var rooms = MatrixClientPeg.get().getRooms();
|
||||||
for (var i = 0; i < rooms.length; ++i) {
|
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;
|
notifCount += rooms[i].unread_notification_count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user