Fixed chat participants
This commit is contained in:
parent
0fc08f1db8
commit
74073d69a4
@ -2381,7 +2381,9 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
if (onlineCount > 1 || onlineCount == 1 && !wasMe) {
|
if (onlineCount > 1 || onlineCount == 1 && !wasMe) {
|
||||||
html = _('group_modal_participants', {total: html, online: onlinePluralize(onlineCount)});
|
html = _('group_modal_participants', {total: html, online: onlinePluralize(onlineCount)});
|
||||||
}
|
}
|
||||||
|
if (!onlineCount && !participantsCount) {
|
||||||
|
html = '';
|
||||||
|
}
|
||||||
element.html(html);
|
element.html(html);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -576,7 +576,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
|
|
||||||
function getChatFull(id) {
|
function getChatFull(id) {
|
||||||
if (chatsFull[id] !== undefined) {
|
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]);
|
return $q.when(chatsFull[id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user