mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Fix crash in spoilers restoring.
This commit is contained in:
parent
70658c6e65
commit
08b99b19c3
1 changed files with 1 additions and 0 deletions
|
@ -2059,6 +2059,7 @@ void Session::removeDependencyMessage(not_null<HistoryItem*> item) {
|
|||
void Session::unregisterMessage(not_null<HistoryItem*> item) {
|
||||
const auto peerId = item->history()->peer->id;
|
||||
const auto itemId = item->id;
|
||||
_shownSpoilers.remove(item);
|
||||
_itemRemoved.fire_copy(item);
|
||||
session().changes().messageUpdated(
|
||||
item,
|
||||
|
|
Loading…
Add table
Reference in a new issue