Allow to set empty group call title.

This commit is contained in:
levlam 2021-06-15 20:56:59 +03:00
parent e18ff8a810
commit 090056f21d

View File

@ -2788,10 +2788,6 @@ void GroupCallManager::set_group_call_title(GroupCallId group_call_id, string ti
}
title = clean_name(title, MAX_TITLE_LENGTH);
if (title.empty()) {
return promise.set_error(Status::Error(3, "Title can't be empty"));
}
if (title == get_group_call_title(group_call)) {
return promise.set_value(Unit());
}