Update API scheme on layer 202.

This commit is contained in:
John Preston 2025-03-31 00:25:57 +05:00
parent 41c0a5ee3b
commit 8f313b4603
2 changed files with 4 additions and 5 deletions

View file

@ -736,13 +736,12 @@ void GroupCall::removeConferenceParticipants(
Expects(_e2e != nullptr); Expects(_e2e != nullptr);
Expects(!userIds.empty()); Expects(!userIds.empty());
const auto owner = &_peer->owner(); auto inputs = QVector<MTPlong>();
auto inputs = QVector<MTPInputPeer>();
inputs.reserve(userIds.size()); inputs.reserve(userIds.size());
auto ids = base::flat_set<TdE2E::UserId>(); auto ids = base::flat_set<TdE2E::UserId>();
ids.reserve(userIds.size()); ids.reserve(userIds.size());
for (const auto &id : userIds) { 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)); ids.emplace(TdE2E::MakeUserId(id));
} }
const auto block = _e2e->makeRemoveBlock(ids); const auto block = _e2e->makeRemoveBlock(ids);
@ -751,7 +750,7 @@ void GroupCall::removeConferenceParticipants(
} }
_api.request(MTPphone_DeleteConferenceCallParticipants( _api.request(MTPphone_DeleteConferenceCallParticipants(
inputCall(), inputCall(),
MTP_vector<MTPInputPeer>(std::move(inputs)), MTP_vector<MTPlong>(std::move(inputs)),
MTP_bytes(block.data) MTP_bytes(block.data)
)).done([=](const MTPUpdates &result) { )).done([=](const MTPUpdates &result) {
_peer->session().api().applyUpdates(result); _peer->session().api().applyUpdates(result);

View file

@ -2608,7 +2608,7 @@ phone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallS
phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl; phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;
phone.saveCallLog#41248786 peer:InputPhoneCall file:InputFile = Bool; phone.saveCallLog#41248786 peer:InputPhoneCall file:InputFile = Bool;
phone.createConferenceCall#fbcefee6 random_id:int = phone.GroupCall; 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.sendConferenceCallBroadcast#c6701900 call:InputGroupCall block:bytes = Updates;
phone.inviteConferenceCallParticipant#3e9cf7ee call:InputGroupCall user_id:InputUser = Updates; phone.inviteConferenceCallParticipant#3e9cf7ee call:InputGroupCall user_id:InputUser = Updates;
phone.declineConferenceCallInvite#3c479971 msg_id:int = Updates; phone.declineConferenceCallInvite#3c479971 msg_id:int = Updates;