Merge pull request #687 from glowing-bear/initialise-unread-count
Fix initialisation of global unread count
This commit is contained in:
commit
0818cc3f9c
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue