You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Apply patch to the right branch: update for new count format
This commit is contained in:
@@ -641,8 +641,8 @@ module.exports = React.createClass({
|
|||||||
for (var i = 0; i < rooms.length; ++i) {
|
for (var i = 0; i < rooms.length; ++i) {
|
||||||
if (rooms[i].hasMembershipState(MatrixClientPeg.get().credentials.userId, 'invite')) {
|
if (rooms[i].hasMembershipState(MatrixClientPeg.get().credentials.userId, 'invite')) {
|
||||||
++notifCount;
|
++notifCount;
|
||||||
} else if (rooms[i].unread_notifications && rooms[i].unread_notifications['notification_count']) {
|
} else if (rooms[i].getUnreadNotificationCount()) {
|
||||||
notifCount += rooms[i].unread_notifications['notification_count'];
|
notifCount += rooms[i].getUnreadNotificationCount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.favicon.badge(notifCount);
|
this.favicon.badge(notifCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user