From 548dac2ad903444333f865642339f721dd132b96 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 20 Jan 2016 17:19:52 +0000 Subject: [PATCH] Use new unread count methods --- 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 adb2ba14b5..ab9a73f77e 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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);