Fix initialisation of global unread count

Fixes #595
This commit is contained in:
Lorenz Hübschle-Schneider 2015-11-28 21:25:06 +01:00
parent f5422e14f4
commit a631a913c7
1 changed files with 4 additions and 2 deletions

View File

@ -214,8 +214,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
);
}
notifications.updateTitle(ab);
$scope.notifications = notifications.unreadCount('notification');
$scope.unread = notifications.unreadCount('unread');
setTimeout(function(){
$scope.notifications = notifications.unreadCount('notification');
$scope.unread = notifications.unreadCount('unread');
});
$timeout(function() {
$rootScope.scrollWithBuffer(true);