From 1ed57238a7f63427fdd0d7f6df933589481e980b Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 26 Mar 2020 16:03:31 +0400 Subject: [PATCH] Allow deleting images in ~DocumentData. --- Telegram/SourceFiles/data/data_session.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp index 23613af95..b3cf55211 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -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 Session::peer(PeerId id) {