mirror of
git://jb55.com/damus
synced 2024-09-30 17:00:43 +00:00
Hide Recommended Relays Section if Empty
Closes: #293 Changelog-Changed: Hide Recommended Relays Section if Empty
This commit is contained in:
parent
5a32a384c4
commit
45e64dc42c
@ -70,11 +70,13 @@ struct ConfigView: View {
|
||||
}
|
||||
}
|
||||
|
||||
if recommended.count > 0 {
|
||||
Section(NSLocalizedString("Recommended Relays", comment: "Section title for recommend relay servers that could be added as part of configuration")) {
|
||||
List(recommended, id: \.url) { r in
|
||||
RecommendedRelayView(damus: state, relay: r.url.absoluteString)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Section(NSLocalizedString("Public Account ID", comment: "Section title for the user's public account ID.")) {
|
||||
HStack {
|
||||
|
Loading…
Reference in New Issue
Block a user