Don't reload pinned Saved Messages topics if they weren't loaded.

This commit is contained in:
levlam 2024-02-07 14:52:02 +03:00
parent 3fa7448dd9
commit 7478bf3051

View File

@ -940,6 +940,9 @@ void SavedMessagesManager::reload_pinned_saved_messages_topics() {
// just in case // just in case
return; return;
} }
if (!topic_list_.are_pinned_saved_messages_topics_inited_) {
return;
}
get_pinned_saved_dialogs(0, Auto()); get_pinned_saved_dialogs(0, Auto());
} }