Use new unread count methods
This commit is contained in:
parent
ba51c68844
commit
548dac2ad9
1 changed files with 2 additions and 2 deletions
|
@ -639,8 +639,8 @@ 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].getUnreadNotificationCount()) {
|
||||||
notifCount += rooms[i].unread_notification_count;
|
notifCount += rooms[i].getUnreadNotificationCount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.favicon.badge(notifCount);
|
this.favicon.badge(notifCount);
|
||||||
|
|
Loading…
Reference in a new issue