Fixed chat participants

This commit is contained in:
Igor Zhukov 2015-04-03 14:15:15 +03:00
parent 0fc08f1db8
commit 74073d69a4
2 changed files with 5 additions and 2 deletions

View File

@ -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);
};

View File

@ -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]);
}
}