Skip to content

Commit 53628fc

Browse files
committed
Check length of group call messages.
1 parent 22349cd commit 53628fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

td/telegram/GroupCallManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4867,7 +4867,7 @@ void GroupCallManager::send_group_call_message(GroupCallId group_call_id,
48674867
get_formatted_text(td_, group_call->dialog_id, std::move(text), td_->auth_manager_->is_bot(),
48684868
false, true, false));
48694869
if (static_cast<int64>(utf8_length(message.text)) > G()->get_option_integer("group_call_message_text_length_max")) {
4870-
// return promise.set_error(400, "Message is too long");
4870+
return promise.set_error(400, "Message is too long");
48714871
}
48724872

48734873
auto as_dialog_id =

0 commit comments

Comments
 (0)