Browse Source

Fixed chat participants

master
Igor Zhukov 10 years ago
parent
commit
74073d69a4
  1. 4
      app/js/directives.js
  2. 3
      app/js/services.js

4
app/js/directives.js

@ -2381,7 +2381,9 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -2381,7 +2381,9 @@ angular.module('myApp.directives', ['myApp.filters'])
if (onlineCount > 1 || onlineCount == 1 && !wasMe) {
html = _('group_modal_participants', {total: html, online: onlinePluralize(onlineCount)});
}
if (!onlineCount && !participantsCount) {
html = '';
}
element.html(html);
};

3
app/js/services.js

@ -576,7 +576,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -576,7 +576,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
function getChatFull(id) {
if (chatsFull[id] !== undefined) {
if (chats[id].version == chatsFull[id].participants.version) {
if (chats[id].version == chatsFull[id].participants.version ||
chats[id].left) {
return $q.when(chatsFull[id]);
}
}

Loading…
Cancel
Save