Update group call title length limit.
This commit is contained in:
parent
9ac71272a3
commit
92b384f3f4
@ -4579,7 +4579,7 @@ getGroupCall group_call_id:int32 = GroupCall;
|
||||
//@invite_hash If non-empty, invite hash to be used to join the group call without being muted by administrators
|
||||
joinGroupCall group_call_id:int32 participant_alias:MessageSender payload:groupCallPayload source:int32 is_muted:Bool invite_hash:string = GroupCallJoinResponse;
|
||||
|
||||
//@description Sets group call title. Requires groupCall.can_be_managed group call flag @group_call_id Group call identifier @title New group call title; 1-128 characters
|
||||
//@description Sets group call title. Requires groupCall.can_be_managed group call flag @group_call_id Group call identifier @title New group call title; 1-64 characters
|
||||
setGroupCallTitle group_call_id:int32 title:string = Ok;
|
||||
|
||||
//@description Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires groupCall.can_change_mute_new_participants group call flag
|
||||
|
@ -2363,7 +2363,7 @@ void GroupCallManager::toggle_group_call_recording(GroupCallId group_call_id, bo
|
||||
return promise.set_error(Status::Error(400, "Can't manage group call recording"));
|
||||
}
|
||||
|
||||
title = clean_name(title, MAX_TITLE_LENGTH);
|
||||
title = clean_name(title, MAX_RECORD_TITLE_LENGTH);
|
||||
|
||||
if (is_enabled == get_group_call_has_recording(group_call)) {
|
||||
return promise.set_value(Unit());
|
||||
|
@ -117,7 +117,8 @@ class GroupCallManager : public Actor {
|
||||
|
||||
static constexpr int32 RECENT_SPEAKER_TIMEOUT = 60 * 60;
|
||||
static constexpr int32 CHECK_GROUP_CALL_IS_JOINED_TIMEOUT = 10;
|
||||
static constexpr size_t MAX_TITLE_LENGTH = 128; // server side limit for group call/group call record title
|
||||
static constexpr size_t MAX_TITLE_LENGTH = 64; // server side limit for group call title length
|
||||
static constexpr size_t MAX_RECORD_TITLE_LENGTH = 128; // server side limit for group call record title length
|
||||
|
||||
void tear_down() override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user