ios: fix typo, add information to settings (#958)

This commit is contained in:
Evgeny Poberezkin
2022-08-20 23:03:56 +01:00
committed by GitHub
parent 2cffe91e0b
commit 0a048eb286
3 changed files with 15 additions and 3 deletions

View File

@@ -14,8 +14,16 @@ struct CallSettings: View {
var body: some View {
VStack {
List {
Section("Settings") {
Section {
Toggle("Connect via relay", isOn: $webrtcPolicyRelay)
} header: {
Text("Settings")
} footer: {
if webrtcPolicyRelay {
Text("Relay server protects your IP address, but it can observe the duration of the call.")
} else {
Text("Relay server is only used if necessary. Another party can observe your IP address.")
}
}
Section("Limitations") {

View File

@@ -32,7 +32,7 @@ struct NetworkAndServers: View {
var body: some View {
VStack {
List {
Section("") {
Section {
NavigationLink {
SMPServers()
.navigationTitle("Your SMP servers")
@@ -52,6 +52,10 @@ struct NetworkAndServers: View {
settingsRow("app.connected.to.app.below.fill") { Text("Advanced network settings") }
}
}
} header: {
Text("")
} footer: {
Text("Using .onion hosts requires compatible VPN provider.")
}
}
}

View File

@@ -561,7 +561,7 @@ public enum OnionHosts: String, Identifiable {
switch self {
case .no: return "No"
case .prefer: return "When available"
case .require: return "Requred"
case .require: return "Required"
}
}