mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Use new unread count methods
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user