Use new unread count methods

This commit is contained in:
David Baker 2016-01-20 17:19:52 +00:00
parent ba51c68844
commit 548dac2ad9

View File

@ -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);