Clear forward drafts on topic destruction.

This commit is contained in:
John Preston 2022-11-01 16:20:36 +04:00
parent f6e501a431
commit 7dbb4a0959
1 changed files with 2 additions and 0 deletions

View File

@ -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, {});
}
}