mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Use new unread count methods
This commit is contained in:
parent
ba51c68844
commit
548dac2ad9
@ -639,8 +639,8 @@ module.exports = React.createClass({
|
||||
|
||||
var rooms = MatrixClientPeg.get().getRooms();
|
||||
for (var i = 0; i < rooms.length; ++i) {
|
||||
if (rooms[i].unread_notification_count) {
|
||||
notifCount += rooms[i].unread_notification_count;
|
||||
if (rooms[i].getUnreadNotificationCount()) {
|
||||
notifCount += rooms[i].getUnreadNotificationCount();
|
||||
}
|
||||
}
|
||||
this.favicon.badge(notifCount);
|
||||
|
Loading…
Reference in New Issue
Block a user