mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix a crash in history clear.
This commit is contained in:
parent
bd367da1bd
commit
599cc35e57
1 changed files with 6 additions and 0 deletions
|
@ -1431,12 +1431,18 @@ void HistoryItem::applyEdition(const MTPDmessageService &message) {
|
|||
if (wasGrouped) {
|
||||
history()->owner().groups().unregisterMessage(this);
|
||||
}
|
||||
if (const auto reply = Get<HistoryMessageReply>()) {
|
||||
reply->clearData(this);
|
||||
}
|
||||
clearDependencyMessage();
|
||||
UpdateComponents(0);
|
||||
createServiceFromMtp(message);
|
||||
applyServiceDateEdition(message);
|
||||
finishEditionToEmpty();
|
||||
} else if (isService()) {
|
||||
if (const auto reply = Get<HistoryMessageReply>()) {
|
||||
reply->clearData(this);
|
||||
}
|
||||
clearDependencyMessage();
|
||||
UpdateComponents(0);
|
||||
createServiceFromMtp(message);
|
||||
|
|
Loading…
Add table
Reference in a new issue