Allow deleting images in ~DocumentData.

This commit is contained in:
John Preston 2020-03-26 16:03:31 +04:00
parent fc5dbc6003
commit 1ed57238a7
1 changed files with 6 additions and 0 deletions

View File

@ -235,6 +235,12 @@ void Session::clear() {
cSetRecentStickers(RecentStickerPack()); cSetRecentStickers(RecentStickerPack());
App::clearMousedItems(); App::clearMousedItems();
_histories->clearAll(); _histories->clearAll();
_webpages.clear();
_locations.clear();
_polls.clear();
_games.clear();
_documents.clear();
_photos.clear();
} }
not_null<PeerData*> Session::peer(PeerId id) { not_null<PeerData*> Session::peer(PeerId id) {