mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Update API scheme on layer 202.
This commit is contained in:
parent
41c0a5ee3b
commit
8f313b4603
2 changed files with 4 additions and 5 deletions
|
@ -736,13 +736,12 @@ void GroupCall::removeConferenceParticipants(
|
|||
Expects(_e2e != nullptr);
|
||||
Expects(!userIds.empty());
|
||||
|
||||
const auto owner = &_peer->owner();
|
||||
auto inputs = QVector<MTPInputPeer>();
|
||||
auto inputs = QVector<MTPlong>();
|
||||
inputs.reserve(userIds.size());
|
||||
auto ids = base::flat_set<TdE2E::UserId>();
|
||||
ids.reserve(userIds.size());
|
||||
for (const auto &id : userIds) {
|
||||
inputs.push_back(owner->user(id)->input);
|
||||
inputs.push_back(MTP_long(peerToUser(id).bare));
|
||||
ids.emplace(TdE2E::MakeUserId(id));
|
||||
}
|
||||
const auto block = _e2e->makeRemoveBlock(ids);
|
||||
|
@ -751,7 +750,7 @@ void GroupCall::removeConferenceParticipants(
|
|||
}
|
||||
_api.request(MTPphone_DeleteConferenceCallParticipants(
|
||||
inputCall(),
|
||||
MTP_vector<MTPInputPeer>(std::move(inputs)),
|
||||
MTP_vector<MTPlong>(std::move(inputs)),
|
||||
MTP_bytes(block.data)
|
||||
)).done([=](const MTPUpdates &result) {
|
||||
_peer->session().api().applyUpdates(result);
|
||||
|
|
|
@ -2608,7 +2608,7 @@ phone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallS
|
|||
phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;
|
||||
phone.saveCallLog#41248786 peer:InputPhoneCall file:InputFile = Bool;
|
||||
phone.createConferenceCall#fbcefee6 random_id:int = phone.GroupCall;
|
||||
phone.deleteConferenceCallParticipants#22e547c7 call:InputGroupCall ids:Vector<InputPeer> block:bytes = Updates;
|
||||
phone.deleteConferenceCallParticipants#f9231114 call:InputGroupCall ids:Vector<long> block:bytes = Updates;
|
||||
phone.sendConferenceCallBroadcast#c6701900 call:InputGroupCall block:bytes = Updates;
|
||||
phone.inviteConferenceCallParticipant#3e9cf7ee call:InputGroupCall user_id:InputUser = Updates;
|
||||
phone.declineConferenceCallInvite#3c479971 msg_id:int = Updates;
|
||||
|
|
Loading…
Add table
Reference in a new issue