2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix crash clearing chats list before histories.

This commit is contained in:
John Preston
2023-02-12 14:39:06 +04:00
parent 13a9920c11
commit d0c2bec925
4 changed files with 9 additions and 0 deletions

View File

@@ -381,6 +381,9 @@ void Session::clear() {
cSetRecentInlineBots(RecentInlineBots());
cSetRecentStickers(RecentStickerPack());
HistoryView::Element::ClearGlobal();
_contactsNoChatsList.clear();
_contactsList.clear();
_chatsList.clear();
_histories->clearAll();
_webpages.clear();
_locations.clear();