mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix possible crash in inconsistent HistoryWidget state.
This commit is contained in:
@@ -1769,6 +1769,7 @@ void HistoryWidget::showHistory(
|
||||
|
||||
_showAtMsgId = showAtMsgId;
|
||||
_historyInited = false;
|
||||
_contactStatus = nullptr;
|
||||
|
||||
// Unload lottie animations.
|
||||
Auth().data().unloadHeavyViewParts(HistoryInner::ElementDelegate());
|
||||
@@ -1786,8 +1787,6 @@ void HistoryWidget::showHistory(
|
||||
}, _contactStatus->lifetime());
|
||||
orderWidgets();
|
||||
controller()->tabbedSelector()->setCurrentPeer(_peer);
|
||||
} else {
|
||||
_contactStatus = nullptr;
|
||||
}
|
||||
refreshTabbedPanel();
|
||||
|
||||
|
Reference in New Issue
Block a user