Improve method name.
This commit is contained in:
parent
0ec4c2084e
commit
a833d5e292
@ -4579,9 +4579,8 @@ setGroupCallTitle group_call_id:int32 title:string = Ok;
|
||||
//@group_call_id Group call identifier @mute_new_participants New value of the mute_new_participants setting
|
||||
toggleGroupCallMuteNewParticipants group_call_id:int32 mute_new_participants:Bool = Ok;
|
||||
|
||||
//@description Resets group call invite hash. Requires groupCall.can_be_managed group call flag
|
||||
//@group_call_id Group call identifier
|
||||
resetGroupCallInviteHash group_call_id:int32 = Ok;
|
||||
//@description Revokes invite link for a group call. Requires groupCall.can_be_managed group call flag @group_call_id Group call identifier
|
||||
revokeGroupCallInviteLink group_call_id:int32 = Ok;
|
||||
|
||||
//@description Invites users to a group call. Sends a service message of type messageInviteToGroupCall for voice chats
|
||||
//@group_call_id Group call identifier @user_ids User identifiers. At most 10 users can be invited simultaneously
|
||||
|
@ -2295,7 +2295,7 @@ void GroupCallManager::on_toggle_group_call_mute_new_participants(InputGroupCall
|
||||
}
|
||||
}
|
||||
|
||||
void GroupCallManager::reset_group_call_invite_hash(GroupCallId group_call_id, Promise<Unit> &&promise) {
|
||||
void GroupCallManager::revoke_group_call_invite_link(GroupCallId group_call_id, Promise<Unit> &&promise) {
|
||||
TRY_RESULT_PROMISE(promise, input_group_call_id, get_input_group_call_id(group_call_id));
|
||||
|
||||
auto *group_call = get_group_call(input_group_call_id);
|
||||
|
@ -68,7 +68,7 @@ class GroupCallManager : public Actor {
|
||||
void toggle_group_call_mute_new_participants(GroupCallId group_call_id, bool mute_new_participants,
|
||||
Promise<Unit> &&promise);
|
||||
|
||||
void reset_group_call_invite_hash(GroupCallId group_call_id, Promise<Unit> &&promise);
|
||||
void revoke_group_call_invite_link(GroupCallId group_call_id, Promise<Unit> &&promise);
|
||||
|
||||
void invite_group_call_participants(GroupCallId group_call_id, vector<UserId> &&user_ids, Promise<Unit> &&promise);
|
||||
|
||||
|
@ -6013,10 +6013,10 @@ void Td::on_request(uint64 id, const td_api::toggleGroupCallMuteNewParticipants
|
||||
request.mute_new_participants_, std::move(promise));
|
||||
}
|
||||
|
||||
void Td::on_request(uint64 id, const td_api::resetGroupCallInviteHash &request) {
|
||||
void Td::on_request(uint64 id, const td_api::revokeGroupCallInviteLink &request) {
|
||||
CHECK_IS_USER();
|
||||
CREATE_OK_REQUEST_PROMISE();
|
||||
group_call_manager_->reset_group_call_invite_hash(GroupCallId(request.group_call_id_), std::move(promise));
|
||||
group_call_manager_->revoke_group_call_invite_link(GroupCallId(request.group_call_id_), std::move(promise));
|
||||
}
|
||||
|
||||
void Td::on_request(uint64 id, const td_api::inviteGroupCallParticipants &request) {
|
||||
|
@ -711,7 +711,7 @@ class Td final : public NetQueryCallback {
|
||||
|
||||
void on_request(uint64 id, const td_api::toggleGroupCallMuteNewParticipants &request);
|
||||
|
||||
void on_request(uint64 id, const td_api::resetGroupCallInviteHash &request);
|
||||
void on_request(uint64 id, const td_api::revokeGroupCallInviteLink &request);
|
||||
|
||||
void on_request(uint64 id, const td_api::inviteGroupCallParticipants &request);
|
||||
|
||||
|
@ -2694,8 +2694,8 @@ class CliClient final : public Actor {
|
||||
} else if (op == "tgcmnp" || op == "tgcmnpe") {
|
||||
send_request(
|
||||
td_api::make_object<td_api::toggleGroupCallMuteNewParticipants>(as_group_call_id(args), op == "tgcmnpe"));
|
||||
} else if (op == "rgcih") {
|
||||
send_request(td_api::make_object<td_api::resetGroupCallInviteHash>(as_group_call_id(args)));
|
||||
} else if (op == "rgcil") {
|
||||
send_request(td_api::make_object<td_api::revokeGroupCallInviteLink>(as_group_call_id(args)));
|
||||
} else if (op == "sgcpis") {
|
||||
string group_call_id;
|
||||
int32 source;
|
||||
|
Loading…
Reference in New Issue
Block a user