Update limit for group call recording titlw length.

This commit is contained in:
levlam 2021-03-16 17:20:53 +03:00
parent 3bcf4bb61a
commit 582f033a09
3 changed files with 3 additions and 4 deletions

View File

@ -4602,7 +4602,7 @@ inviteGroupCallParticipants group_call_id:int32 user_ids:vector<int32> = Ok;
//@can_self_unmute Pass true if the invite_link should contain an invite hash, passing which to joinGroupCall would allow the invited user to unmute themself. Requires groupCall.can_be_managed group call flag
getGroupCallInviteLink group_call_id:int32 can_self_unmute:Bool = HttpUrl;
//@description Starts recording of a group call. Requires groupCall.can_be_managed group call flag @group_call_id Group call identifier @title Group call recording title; 0-128 characters
//@description Starts recording of a group call. Requires groupCall.can_be_managed group call flag @group_call_id Group call identifier @title Group call recording title; 0-64 characters
startGroupCallRecording group_call_id:int32 title:string = Ok;
//@description Ends recording of a group call. Requires groupCall.can_be_managed group call flag @group_call_id Group call identifier

View File

@ -2522,7 +2522,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_RECORD_TITLE_LENGTH);
title = clean_name(title, MAX_TITLE_LENGTH);
if (is_enabled == get_group_call_has_recording(group_call)) {
return promise.set_value(Unit());

View File

@ -121,8 +121,7 @@ class GroupCallManager : public Actor {
static constexpr int32 RECENT_SPEAKER_TIMEOUT = 60 * 60;
static constexpr int32 UPDATE_GROUP_CALL_PARTICIPANT_ORDER_TIMEOUT = 10;
static constexpr int32 CHECK_GROUP_CALL_IS_JOINED_TIMEOUT = 10;
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
static constexpr size_t MAX_TITLE_LENGTH = 64; // server side limit for group call/call record title length
void tear_down() override;