mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-21 23:02:22 +01:00
fix(core): getCountUnread error when guest access
This commit is contained in:
@@ -72,9 +72,11 @@
|
||||
};
|
||||
|
||||
vm.getCountUnread = function () {
|
||||
MessagesService.countUnread(function (data) {
|
||||
vm.unreadCount = data.countFrom + data.countTo;
|
||||
});
|
||||
if (Authentication.user) {
|
||||
MessagesService.countUnread(function (data) {
|
||||
vm.unreadCount = data.countFrom + data.countTo;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user