mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix crash in lottie animation destroy-on-init.
This commit is contained in:
@@ -5106,6 +5106,8 @@ int HistoryWidget::countInitialScrollTop() {
|
||||
}
|
||||
|
||||
void HistoryWidget::createUnreadBarIfBelowVisibleArea(int withScrollTop) {
|
||||
Expects(_history != nullptr);
|
||||
|
||||
if (_history->unreadBar()) {
|
||||
return;
|
||||
}
|
||||
@@ -5227,7 +5229,7 @@ void HistoryWidget::updateHistoryGeometry(
|
||||
newScrollTop = countInitialScrollTop();
|
||||
_historyInited = true;
|
||||
_scrollToAnimation.stop();
|
||||
} else if (wasAtBottom && !loadedDown) {
|
||||
} else if (wasAtBottom && !loadedDown && !_history->unreadBar()) {
|
||||
newScrollTop = countAutomaticScrollTop();
|
||||
} else {
|
||||
newScrollTop = std::min(
|
||||
|
Reference in New Issue
Block a user