Hide the search field for room members in a direct chat.

Hide the search field for room members in a direct chat as there are no members to search.
This commit is contained in:
James Graham
2023-11-09 20:11:38 +00:00
committed by Tobias Fella
parent 4ef44b8e93
commit 0beb5df08d

View File

@@ -160,6 +160,7 @@ QQC2.ScrollView {
Kirigami.SearchField {
id: userListSearchField
visible: !root.room.isDirectChat()
onVisibleChanged: if (visible) forceActiveFocus()
Layout.fillWidth: true
Layout.leftMargin: Kirigami.Units.largeSpacing