Fix initialisation of global unread count

Fixes #595
paste-quickfix
Lorenz Hübschle-Schneider 10 years ago
parent f5422e14f4
commit a631a913c7
  1. 6
      js/glowingbear.js

@ -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…
Cancel
Save