mobile: update copy, fix typo (#440)

* Updated copy and fixed typo

* Updated copy and fixed typo
This commit is contained in:
Mark Aleksander Hil
2022-03-14 20:58:19 +00:00
committed by GitHub
parent 1f539fc8be
commit 102fdf3b18
2 changed files with 6 additions and 6 deletions
@@ -241,9 +241,9 @@ data class Chat (
val statusString: String get() = if (this is Connected) "Server connected" else "Connecting server…"
val statusExplanation: String get() =
when {
this is Connected -> "You are connected to the server you use to receve messages from this contact."
this is Error -> "Trying to connect to the server you use to receve messages from this contact (error: $error)."
else -> "Trying to connect to the server you use to receve messages from this contact."
this is Connected -> "You are connected to the server used to receive messages from this contact."
this is Error -> "Trying to connect to the server used to receive messages from this contact (error: $error)."
else -> "Trying to connect to the server used to receive messages from this contact."
}
@Serializable @SerialName("unknown") class Unknown: NetworkStatus()
+3 -3
View File
@@ -360,9 +360,9 @@ final class Chat: ObservableObject, Identifiable {
var statusExplanation: String {
get {
switch self {
case .connected: return "You are connected to the server you use to receve messages from this contact."
case let .error(err): return "Trying to connect to the server you use to receve messages from this contact (error: \(err))."
default: return "Trying to connect to the server you use to receve messages from this contact."
case .connected: return "You are connected to the server used to receive messages from this contact."
case let .error(err): return "Trying to connect to the server used to receive messages from this contact (error: \(err))."
default: return "Trying to connect to the server used to receive messages from this contact."
}
}
}