ChatNext jumps to first chat if no chat opened.

Fixes #27963.
This commit is contained in:
John Preston 2024-05-30 17:10:12 +04:00
parent 0527e9a0f7
commit 4f5594c8cc

View file

@ -4030,6 +4030,12 @@ void InnerWidget::setupShortcuts() {
request->check(Command::ChatNext) && request->handle([=] {
return jumpToDialogRow(next);
});
} else if (_state == WidgetState::Default
? !_shownList->empty()
: !_filterResults.empty()) {
request->check(Command::ChatNext) && request->handle([=] {
return jumpToDialogRow(first);
});
}
request->check(Command::ChatFirst) && request->handle([=] {
return jumpToDialogRow(first);