mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix possible crash with pinned message deletion.
This commit is contained in:
parent
fb283c4828
commit
81fb4046d1
1 changed files with 3 additions and 0 deletions
|
@ -1757,6 +1757,9 @@ void HistoryInner::itemRemoved(not_null<const HistoryItem*> item) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_pinnedItem == item) {
|
||||
_pinnedItem = nullptr;
|
||||
}
|
||||
if (_reactionsItem.current() == item) {
|
||||
_reactionsItem = nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue