From 8f313b4603094d4531a81986cc6e7da21dace537 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 31 Mar 2025 00:25:57 +0500 Subject: [PATCH] Update API scheme on layer 202. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 7 +++---- Telegram/SourceFiles/mtproto/scheme/api.tl | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index f7e4355c4e..c2209c7102 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -736,13 +736,12 @@ void GroupCall::removeConferenceParticipants( Expects(_e2e != nullptr); Expects(!userIds.empty()); - const auto owner = &_peer->owner(); - auto inputs = QVector(); + auto inputs = QVector(); inputs.reserve(userIds.size()); auto ids = base::flat_set(); 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(std::move(inputs)), + MTP_vector(std::move(inputs)), MTP_bytes(block.data) )).done([=](const MTPUpdates &result) { _peer->session().api().applyUpdates(result); diff --git a/Telegram/SourceFiles/mtproto/scheme/api.tl b/Telegram/SourceFiles/mtproto/scheme/api.tl index 68200532f5..5761f160c0 100644 --- a/Telegram/SourceFiles/mtproto/scheme/api.tl +++ b/Telegram/SourceFiles/mtproto/scheme/api.tl @@ -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 block:bytes = Updates; +phone.deleteConferenceCallParticipants#f9231114 call:InputGroupCall ids:Vector 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;