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