[Improvement] Scroll to dialog on back button click
This commit is contained in:
parent
4f319c2fc1
commit
1adfde1b7a
1 changed files with 2 additions and 2 deletions
|
|
@ -1462,13 +1462,13 @@ void MainWidget::showHistory(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_dialogs && !_dialogs->isHidden()) {
|
if (_dialogs && !_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->peer->id, showAtMsgId)));
|
FullMsgId(history->peer->id, showAtMsgId)));
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
_dialogs->update();
|
_dialogs->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue