2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix possible crash in folder chats clearing.

This commit is contained in:
John Preston
2023-03-09 12:38:40 +04:00
parent ce5084c444
commit cc6dfd08fc
3 changed files with 8 additions and 0 deletions

View File

@@ -385,6 +385,9 @@ void Session::clear() {
_contactsNoChatsList.clear();
_contactsList.clear();
_chatsList.clear();
for (const auto &[id, folder] : _folders) {
folder->clearChatsList();
}
_histories->clearAll();
_webpages.clear();
_locations.clear();