mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix possible crash in folder chats clearing.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user