mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Fix crash in spoilers restoring.
This commit is contained in:
@@ -2059,6 +2059,7 @@ void Session::removeDependencyMessage(not_null<HistoryItem*> item) {
|
|||||||
void Session::unregisterMessage(not_null<HistoryItem*> item) {
|
void Session::unregisterMessage(not_null<HistoryItem*> item) {
|
||||||
const auto peerId = item->history()->peer->id;
|
const auto peerId = item->history()->peer->id;
|
||||||
const auto itemId = item->id;
|
const auto itemId = item->id;
|
||||||
|
_shownSpoilers.remove(item);
|
||||||
_itemRemoved.fire_copy(item);
|
_itemRemoved.fire_copy(item);
|
||||||
session().changes().messageUpdated(
|
session().changes().messageUpdated(
|
||||||
item,
|
item,
|
||||||
|
Reference in New Issue
Block a user