[Improvement] Scroll to dialog on back button click

This commit is contained in:
Eric Kotato 2022-09-11 06:51:07 +03:00
parent 85f3b754e3
commit 53f1893b97

View file

@ -1467,13 +1467,13 @@ void MainWidget::ui_showPeerHistory(
}
if (_dialogs && !_dialogs->isHidden()) {
if (!back) {
// if (!back) {
if (const auto history = _history->history()) {
_dialogs->scrollToEntry(Dialogs::RowDescriptor(
history,
FullMsgId(history->peer->id, showAtMsgId)));
}
}
// }
_dialogs->update();
}