Commit d98c5e65 authored by Vladimir Baranov's avatar Vladimir Baranov

rref #5392. Reload unread messages conunt after user logged in

parent 9d7c1ce5
......@@ -520,6 +520,11 @@ angular.module('ulakbus.messaging', ['ui.bootstrap'])
};
});
// initialize unread messages counter when user logged in
$rootScope.$on("user_ready", function(){
msg.get_unread_messages_count();
});
return msg;
})
......
......@@ -43,8 +43,6 @@ angular.module('ulakbus')
scope: {},
controller: function ($scope, $log) {
$scope.count = MessagingService.get_unread_counters();
// initialize counters
MessagingService.get_unread_messages_count();
$scope.showMessagesWindow = function(type){
if (type == 'notifications'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment