From 05b3a122f5d2bf5b31efb143002013b04bac7748 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 9 Mar 2026 12:48:48 -0400 Subject: [PATCH] Positions search relays after users in the search result list --- .../ui/screen/loggedIn/search/SearchScreen.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/search/SearchScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/search/SearchScreen.kt index da1f6c4b4..12ac914aa 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/search/SearchScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/search/SearchScreen.kt @@ -268,6 +268,17 @@ private fun DisplaySearchResults( ) } + itemsIndexed( + users, + key = { _, item -> "u" + item.pubkeyHex }, + ) { _, item -> + UserCompose(item, accountViewModel = accountViewModel, nav = nav) + + HorizontalDivider( + thickness = DividerThickness, + ) + } + itemsIndexed( relays, key = { _, item -> "relay${item.relay.url}" }, @@ -285,17 +296,6 @@ private fun DisplaySearchResults( ) } - itemsIndexed( - users, - key = { _, item -> "u" + item.pubkeyHex }, - ) { _, item -> - UserCompose(item, accountViewModel = accountViewModel, nav = nav) - - HorizontalDivider( - thickness = DividerThickness, - ) - } - itemsIndexed( publicChatChannels, key = { _, item -> "public" + item.idHex },