From acce08194d64bd9d2347f3b290ececbf20c144f1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 21 Jan 2016 10:23:18 +0000 Subject: [PATCH] Apply patch to the right branch: update for new count format --- src/components/structures/MatrixChat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 975ea37aab..b45ab93ea5 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -641,8 +641,8 @@ module.exports = React.createClass({ for (var i = 0; i < rooms.length; ++i) { if (rooms[i].hasMembershipState(MatrixClientPeg.get().credentials.userId, 'invite')) { ++notifCount; - } else if (rooms[i].unread_notifications && rooms[i].unread_notifications['notification_count']) { - notifCount += rooms[i].unread_notifications['notification_count']; + } else if (rooms[i].getUnreadNotificationCount()) { + notifCount += rooms[i].getUnreadNotificationCount(); } } this.favicon.badge(notifCount);