Browse Source

Fixed handling update read inbox

master
Igor Zhukov 9 years ago
parent
commit
192288dbc7
  1. 7
      app/js/messages_manager.js

7
app/js/messages_manager.js

@ -2751,6 +2751,13 @@ angular.module('myApp.services')
} }
} }
} }
if (!isOut && foundDialog) {
if (newUnreadCount &&
foundDialog[0].top_message <= maxID) {
newUnreadCount = foundDialog[0].unread_count = 0;
}
foundDialog[0].read_inbox_max_id = maxID;
}
if (newUnreadCount !== false) { if (newUnreadCount !== false) {
$rootScope.$broadcast('dialog_unread', {peerID: peerID, count: newUnreadCount}); $rootScope.$broadcast('dialog_unread', {peerID: peerID, count: newUnreadCount});

Loading…
Cancel
Save