Fix return to saved history state with translate bar.

This commit is contained in:
John Preston 2023-02-01 23:04:02 +04:00
parent 3ac86adf10
commit ebfddc1a68
2 changed files with 6 additions and 6 deletions

View File

@ -2647,6 +2647,11 @@ void HistoryWidget::updateControlsVisibility() {
return;
}
if (_firstLoadRequest && !_scroll->isHidden()) {
_scroll->hide();
} else if (!_firstLoadRequest && _scroll->isHidden()) {
_scroll->show();
}
if (_pinnedBar) {
_pinnedBar->show();
}
@ -2659,11 +2664,6 @@ void HistoryWidget::updateControlsVisibility() {
if (_requestsBar) {
_requestsBar->show();
}
if (_firstLoadRequest && !_scroll->isHidden()) {
_scroll->hide();
} else if (!_firstLoadRequest && _scroll->isHidden()) {
_scroll->show();
}
if (_contactStatus) {
_contactStatus->show();
}

View File

@ -597,7 +597,7 @@ int TranslateBar::height() const {
return !_forceHidden
? _wrap.height()
: _shouldBeShown
? st::historyReplyHeight
? st::historyComposeButton.height
: 0;
}