diff --git a/js/glowingbear.js b/js/glowingbear.js index 0c209c3..3e3a2e2 100644 --- a/js/glowingbear.js +++ b/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);