Improve method name.

This commit is contained in:
levlam 2021-06-04 01:17:15 +03:00
parent a96bf1531a
commit af33e8343a
4 changed files with 9 additions and 3 deletions

View File

@ -4730,7 +4730,7 @@ joinGroupCall group_call_id:int32 participant_id:MessageSender audio_source_id:i
startGroupCallScreenSharing group_call_id:int32 payload:string = Text;
//@description Pauses or unpauses screen sharing in a joined group call @group_call_id Group call identifier @is_paused True if screen sharing is paused
setGroupCallScreenSharingIsPaused group_call_id:int32 is_paused:Bool = Ok;
toggleGroupCallScreenSharingIsPaused group_call_id:int32 is_paused:Bool = Ok;
//@description Ends screen sharing in a joined group call @group_call_id Group call identifier
endGroupCallScreenSharing group_call_id:int32 = Ok;

View File

@ -6064,7 +6064,7 @@ void Td::on_request(uint64 id, td_api::startGroupCallScreenSharing &request) {
std::move(query_promise));
}
void Td::on_request(uint64 id, const td_api::setGroupCallScreenSharingIsPaused &request) {
void Td::on_request(uint64 id, const td_api::toggleGroupCallScreenSharingIsPaused &request) {
CHECK_IS_USER();
CREATE_OK_REQUEST_PROMISE();
group_call_manager_->toggle_group_call_is_my_presentation_paused(GroupCallId(request.group_call_id_),

View File

@ -736,7 +736,7 @@ class Td final : public NetQueryCallback {
void on_request(uint64 id, td_api::startGroupCallRecording &request);
void on_request(uint64 id, const td_api::setGroupCallScreenSharingIsPaused &request);
void on_request(uint64 id, const td_api::toggleGroupCallScreenSharingIsPaused &request);
void on_request(uint64 id, const td_api::endGroupCallRecording &request);

View File

@ -2750,6 +2750,12 @@ class CliClient final : public Actor {
as_message_sender(participant_id), group_call_source_,
std::move(payload), true, true, invite_hash));
}
} else if (op == "tgcssip") {
string group_call_id;
bool is_paused;
get_args(args, group_call_id, is_paused);
send_request(td_api::make_object<td_api::toggleGroupCallScreenSharingIsPaused>(as_group_call_id(group_call_id),
is_paused));
} else if (op == "egcss") {
string group_call_id = args;
send_request(td_api::make_object<td_api::endGroupCallScreenSharing>(as_group_call_id(group_call_id)));