From face5ba6e6875ede353bcdbf854e48b22db01d9e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 27 Mar 2026 14:18:32 -0400 Subject: [PATCH] Fixes long lists of vanish request relays --- .../loggedIn/relays/vanish/RequestToVanishScreen.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/vanish/RequestToVanishScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/vanish/RequestToVanishScreen.kt index 1fea6cfa9..988531be4 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/vanish/RequestToVanishScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/vanish/RequestToVanishScreen.kt @@ -382,7 +382,7 @@ fun RequestToVanishScreen( if (showConfirmDialog) { ConfirmVanishDialog( isAllRelays = allRelaysSelected, - relayUrls = selectedRelayUrls, + relays = selectedRelayUrls, onConfirm = { showConfirmDialog = false if (allRelaysSelected) { @@ -406,7 +406,7 @@ fun RequestToVanishScreen( @Composable private fun ConfirmVanishDialog( isAllRelays: Boolean, - relayUrls: List, + relays: List, onConfirm: () -> Unit, onDismiss: () -> Unit, ) { @@ -432,7 +432,13 @@ private fun ConfirmVanishDialog( if (isAllRelays) { stringRes(R.string.vanish_confirm_all_relays) } else { - stringRes(R.string.vanish_confirm_single_relay, relayUrls.joinToString(", ") { it.displayUrl() }) + val relayNames = + relays.joinToString( + ", ", + limit = 10, + transform = { it.displayUrl() }, + ) + stringRes(R.string.vanish_confirm_single_relay, relayNames) }, ) },