Allow deleting images in ~DocumentData.

This commit is contained in:
John Preston 2020-03-26 16:03:31 +04:00
parent fc5dbc6003
commit 1ed57238a7

View file

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