mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Fix possible crash in inconsistent HistoryWidget state.
This commit is contained in:
parent
31ba2828af
commit
8c6b5caa57
1 changed files with 1 additions and 2 deletions
|
@ -1769,6 +1769,7 @@ void HistoryWidget::showHistory(
|
||||||
|
|
||||||
_showAtMsgId = showAtMsgId;
|
_showAtMsgId = showAtMsgId;
|
||||||
_historyInited = false;
|
_historyInited = false;
|
||||||
|
_contactStatus = nullptr;
|
||||||
|
|
||||||
// Unload lottie animations.
|
// Unload lottie animations.
|
||||||
Auth().data().unloadHeavyViewParts(HistoryInner::ElementDelegate());
|
Auth().data().unloadHeavyViewParts(HistoryInner::ElementDelegate());
|
||||||
|
@ -1786,8 +1787,6 @@ void HistoryWidget::showHistory(
|
||||||
}, _contactStatus->lifetime());
|
}, _contactStatus->lifetime());
|
||||||
orderWidgets();
|
orderWidgets();
|
||||||
controller()->tabbedSelector()->setCurrentPeer(_peer);
|
controller()->tabbedSelector()->setCurrentPeer(_peer);
|
||||||
} else {
|
|
||||||
_contactStatus = nullptr;
|
|
||||||
}
|
}
|
||||||
refreshTabbedPanel();
|
refreshTabbedPanel();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue