mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +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) {
|
void HistoryWidget::createUnreadBarIfBelowVisibleArea(int withScrollTop) {
|
||||||
|
Expects(_history != nullptr);
|
||||||
|
|
||||||
if (_history->unreadBar()) {
|
if (_history->unreadBar()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -5227,7 +5229,7 @@ void HistoryWidget::updateHistoryGeometry(
|
|||||||
newScrollTop = countInitialScrollTop();
|
newScrollTop = countInitialScrollTop();
|
||||||
_historyInited = true;
|
_historyInited = true;
|
||||||
_scrollToAnimation.stop();
|
_scrollToAnimation.stop();
|
||||||
} else if (wasAtBottom && !loadedDown) {
|
} else if (wasAtBottom && !loadedDown && !_history->unreadBar()) {
|
||||||
newScrollTop = countAutomaticScrollTop();
|
newScrollTop = countAutomaticScrollTop();
|
||||||
} else {
|
} else {
|
||||||
newScrollTop = std::min(
|
newScrollTop = std::min(
|
||||||
|
Submodule Telegram/lib_lottie updated: 17b6a6d532...0f6c9f4acb
Reference in New Issue
Block a user