mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Apply patch to the right branch: update for new count format
This commit is contained in:
parent
83634bf930
commit
acce08194d
1 changed files with 2 additions and 2 deletions
|
@ -641,8 +641,8 @@ module.exports = React.createClass({
|
|||
for (var i = 0; i < rooms.length; ++i) {
|
||||
if (rooms[i].hasMembershipState(MatrixClientPeg.get().credentials.userId, 'invite')) {
|
||||
++notifCount;
|
||||
} else if (rooms[i].unread_notifications && rooms[i].unread_notifications['notification_count']) {
|
||||
notifCount += rooms[i].unread_notifications['notification_count'];
|
||||
} else if (rooms[i].getUnreadNotificationCount()) {
|
||||
notifCount += rooms[i].getUnreadNotificationCount();
|
||||
}
|
||||
}
|
||||
this.favicon.badge(notifCount);
|
||||
|
|
Loading…
Reference in a new issue