2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Don't scroll chats up when searching in chat.

This commit is contained in:
John Preston
2018-09-20 10:45:52 +03:00
parent 02a8b693af
commit f68466b072

View File

@@ -232,7 +232,7 @@ void DialogsWidget::repaintDialogRow(
}
void DialogsWidget::dialogsToUp() {
if (_filter->getLastText().trimmed().isEmpty()) {
if (_filter->getLastText().trimmed().isEmpty() && !_searchInChat) {
_scroll->scrollToY(0);
}
}