From b469135877cc64e1b5d0f7fd65475fce5dd6de6e Mon Sep 17 00:00:00 2001 From: Peter G Date: Sun, 5 Feb 2023 14:41:04 +0000 Subject: [PATCH] improve message when search yields no results (#507) Co-authored-by: nephros --- qml/pages/NewChatPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/pages/NewChatPage.qml b/qml/pages/NewChatPage.qml index b9e5aba..67dc385 100644 --- a/qml/pages/NewChatPage.qml +++ b/qml/pages/NewChatPage.qml @@ -139,7 +139,9 @@ Page { ViewPlaceholder { y: Theme.paddingLarge enabled: contactsListView.count === 0 - text: qsTr("You don't have any contacts.") + text: (contactsSearchField.text.length > 0) + ? qsTr("No contacts found.") + : qsTr("You don't have any contacts.") } delegate: Item {