mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 16:59:55 +00:00
parent
3779ad46ca
commit
9773563926
@ -3163,8 +3163,8 @@ void HistoryWidget::doneShow() {
|
||||
updateControlsVisibility();
|
||||
if (!_historyInited) {
|
||||
updateHistoryGeometry(true);
|
||||
} else if (hasPendingResizedItems()) {
|
||||
updateHistoryGeometry();
|
||||
} else {
|
||||
handlePendingHistoryUpdate();
|
||||
}
|
||||
preloadHistoryIfNeeded();
|
||||
if (App::wnd()) {
|
||||
@ -5006,11 +5006,15 @@ int HistoryWidget::countAutomaticScrollTop() {
|
||||
return qMin(result, _scroll->scrollTopMax());
|
||||
}
|
||||
|
||||
void HistoryWidget::updateHistoryGeometry(bool initial, bool loadedDown, const ScrollChange &change) {
|
||||
void HistoryWidget::updateHistoryGeometry(
|
||||
bool initial,
|
||||
bool loadedDown,
|
||||
const ScrollChange &change) {
|
||||
if (!_history || (initial && _historyInited) || (!initial && !_historyInited)) {
|
||||
return;
|
||||
}
|
||||
if (_firstLoadRequest || _a_show.animating()) {
|
||||
_updateHistoryGeometryRequired = true;
|
||||
return; // scrollTopMax etc are not working after recountHistoryGeometry()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user