mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Clear forward drafts on topic destruction.
This commit is contained in:
parent
f6e501a431
commit
7dbb4a0959
1 changed files with 2 additions and 0 deletions
|
@ -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, {});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue