mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in pinned item translations.
This commit is contained in:
parent
2402285d03
commit
9d8d039886
1 changed files with 3 additions and 4 deletions
|
@ -1840,13 +1840,12 @@ void HistoryInner::performDrag() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryInner::itemRemoved(not_null<const HistoryItem*> item) {
|
void HistoryInner::itemRemoved(not_null<const HistoryItem*> item) {
|
||||||
if (_history != item->history() && _migrated != item->history()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_pinnedItem == item) {
|
if (_pinnedItem == item) {
|
||||||
_pinnedItem = nullptr;
|
_pinnedItem = nullptr;
|
||||||
}
|
}
|
||||||
|
if (_history != item->history() && _migrated != item->history()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (_reactionsItem.current() == item) {
|
if (_reactionsItem.current() == item) {
|
||||||
_reactionsItem = nullptr;
|
_reactionsItem = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue