From e18d0ce897c53e8e507c57eec0301a586b387251 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 3 Feb 2024 00:15:25 +0100 Subject: [PATCH] Hide "Tap account to exclude" on relay settings if there is only 1 account --- Nostur/Relays/RelayEditView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nostur/Relays/RelayEditView.swift b/Nostur/Relays/RelayEditView.swift index c553f112..9ffdab8e 100644 --- a/Nostur/Relays/RelayEditView.swift +++ b/Nostur/Relays/RelayEditView.swift @@ -66,7 +66,7 @@ struct RelayEditView: View { } Toggle(isOn: $relay.write) { Text("Publish to this relay", comment: "Label for toggle to publish to this relay") .background(refresh ? Color.clear : Color.clear) - if relay.write { + if relay.write && accounts.count > 1 { ScrollView(.horizontal) { HStack { ForEach(accounts) { account in