From 7dbb4a09598c7d82ca51f442e9389cff04e7b525 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 1 Nov 2022 16:20:36 +0400 Subject: [PATCH] Clear forward drafts on topic destruction. --- Telegram/SourceFiles/data/data_forum.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/data/data_forum.cpp b/Telegram/SourceFiles/data/data_forum.cpp index aa8e04509..b202fd099 100644 --- a/Telegram/SourceFiles/data/data_forum.cpp +++ b/Telegram/SourceFiles/data/data_forum.cpp @@ -70,6 +70,7 @@ Forum::~Forum() { session().storage().unload(Storage::SharedMediaUnloadThread( peerId, rootId)); + _history->setForwardDraft(rootId, {}); } } @@ -181,6 +182,7 @@ void Forum::applyTopicDeleted(MsgId rootId) { session().storage().unload(Storage::SharedMediaUnloadThread( _history->peer->id, rootId)); + _history->setForwardDraft(rootId, {}); } }