1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-06-26 04:01:04 +03:00

Address PR comments

This commit is contained in:
David Baker
2016-01-07 10:38:44 +00:00
parent 05d9e1261c
commit 287da54fbc
2 changed files with 12 additions and 2 deletions

View File

@ -639,7 +639,9 @@ module.exports = React.createClass({
var rooms = MatrixClientPeg.get().getRooms();
for (var i = 0; i < rooms.length; ++i) {
notifCount += rooms[i].unread_notification_count;
if (rooms[i].unread_notification_count) {
notifCount += rooms[i].unread_notification_count;
}
}
this.favicon.badge(notifCount);
document.title = (notifCount > 0 ? "["+notifCount+"] " : "")+"Vector";