From 60ebaf73a9af6325713eca4bc263482598eb0189 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Tue, 26 Aug 2025 16:53:28 +0200 Subject: [PATCH] fix #LINQT-1885 start research in messages with arrow buttons as well --- Linphone/view/Page/Form/Chat/SelectedChatView.qml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Linphone/view/Page/Form/Chat/SelectedChatView.qml b/Linphone/view/Page/Form/Chat/SelectedChatView.qml index 194775c54..023ce4686 100644 --- a/Linphone/view/Page/Form/Chat/SelectedChatView.qml +++ b/Linphone/view/Page/Form/Chat/SelectedChatView.qml @@ -205,12 +205,22 @@ FocusScope { RoundButton { icon.source: AppIcons.upArrow style: ButtonStyle.noBackground - onClicked: chatMessagesListView.findIndexWithFilter(false) + onClicked: { + if (chatMessagesListView.filterText !== chatMessagesSearchBar.text) + chatMessagesListView.filterText = chatMessagesSearchBar.text + else + chatMessagesListView.findIndexWithFilter(false) + } } RoundButton { icon.source: AppIcons.downArrow style: ButtonStyle.noBackground - onClicked: chatMessagesListView.findIndexWithFilter(true) + onClicked: { + if (chatMessagesListView.filterText !== chatMessagesSearchBar.text) + chatMessagesListView.filterText = chatMessagesSearchBar.text + else + chatMessagesListView.findIndexWithFilter(true) + } } } RoundButton {