Do nothing in MessagesManager::reload_voice_chat_on_search before authorization.

This commit is contained in:
levlam 2022-11-25 18:58:17 +03:00
parent 3ec53c8d78
commit 409f7f5dd7

View File

@ -33652,6 +33652,10 @@ DialogId MessagesManager::search_public_dialog(const string &username_to_search,
} }
void MessagesManager::reload_voice_chat_on_search(const string &username) { void MessagesManager::reload_voice_chat_on_search(const string &username) {
if (!td_->auth_manager_->is_authorized()) {
return;
}
auto cleaned_username = clean_username(username); auto cleaned_username = clean_username(username);
if (!cleaned_username.empty()) { if (!cleaned_username.empty()) {
reload_voice_chat_on_search_usernames_.insert(cleaned_username); reload_voice_chat_on_search_usernames_.insert(cleaned_username);