Scroll to dialog on back button click

This commit is contained in:
Eric Kotato 2020-02-23 03:14:26 +03:00
parent 6116188e8b
commit 938afea533

View file

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