Fix relay signal indicator, properly show how many relays you are connected to

Changelog-Fixed: Fix relay signal indicator, properly show how many relays you are connected to
This commit is contained in:
William Casarin
2023-04-14 11:45:10 -07:00
parent 735376b00f
commit a4d4954abd
5 changed files with 50 additions and 15 deletions

View File

@@ -267,13 +267,7 @@ struct ContentView: View {
ToolbarItem(placement: .navigationBarTrailing) {
HStack(alignment: .center) {
if home.signal.signal != home.signal.max_signal {
NavigationLink(destination: RelayConfigView(state: damus_state!)) {
Text("\(home.signal.signal)/\(home.signal.max_signal)", comment: "Fraction of how many of the user's relay servers that are operational.")
.font(.callout)
.foregroundColor(.gray)
}
}
SignalView(state: damus_state!, signal: home.signal)
// maybe expand this to other timelines in the future
if selected_timeline == .search {