Merge pull request #687 from glowing-bear/initialise-unread-count

Fix initialisation of global unread count
This commit is contained in:
Tor Hveem 2015-11-29 17:01:10 +01:00
commit 0818cc3f9c

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