2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Fix history items cleanup.

This commit is contained in:
John Preston
2018-06-09 11:52:37 +03:00
parent 5c4b81434e
commit bf775cb4ca
2 changed files with 38 additions and 45 deletions

View File

@@ -99,8 +99,10 @@ not_null<History*> Histories::findOrInsert(PeerId peerId) {
}
void Histories::clear() {
for (const auto &[peerId, history] : _map) {
history->unloadBlocks();
}
App::historyClearMsgs();
_map.clear();
_unreadFull = _unreadMuted = 0;