|
|
@ -2512,8 +2512,14 @@ angular.module('myApp.controllers', ['myApp.i18n']) |
|
|
|
}) |
|
|
|
}) |
|
|
|
var chatParticipantsPromise |
|
|
|
var chatParticipantsPromise |
|
|
|
if (peerID < 0) { |
|
|
|
if (peerID < 0) { |
|
|
|
|
|
|
|
if (AppPeersManager.isChannel(peerID)) { |
|
|
|
|
|
|
|
chatParticipantsPromise = AppProfileManager.getChannelParticipants(-peerID) |
|
|
|
|
|
|
|
} else { |
|
|
|
chatParticipantsPromise = AppProfileManager.getChatFull(-peerID).then(function (chatFull) { |
|
|
|
chatParticipantsPromise = AppProfileManager.getChatFull(-peerID).then(function (chatFull) { |
|
|
|
var participantsVector = (chatFull.participants || {}).participants || [] |
|
|
|
return (chatFull.participants || {}).participants || [] |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
chatParticipantsPromise = chatParticipantsPromise.then(function (participantsVector) { |
|
|
|
var ids = [] |
|
|
|
var ids = [] |
|
|
|
angular.forEach(participantsVector, function (participant) { |
|
|
|
angular.forEach(participantsVector, function (participant) { |
|
|
|
ids.push(participant.user_id) |
|
|
|
ids.push(participant.user_id) |
|
|
|