mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pinnedItem == item) {
|
||||||
|
_pinnedItem = nullptr;
|
||||||
|
}
|
||||||
if (_reactionsItem.current() == item) {
|
if (_reactionsItem.current() == item) {
|
||||||
_reactionsItem = nullptr;
|
_reactionsItem = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue