Унифицирование состояний до Connecting... и Chats
This commit is contained in:
@@ -360,12 +360,8 @@ private struct ToolbarTitleView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
let state = ProtocolManager.shared.connectionState
|
let state = ProtocolManager.shared.connectionState
|
||||||
let title: String = switch state {
|
let title: String = switch state {
|
||||||
case .disconnected: "Connecting..."
|
|
||||||
case .connecting: "Connecting..."
|
|
||||||
case .connected: "Connected"
|
|
||||||
case .handshaking: "Authenticating..."
|
|
||||||
case .deviceVerificationRequired: "Device Verification..."
|
|
||||||
case .authenticated: "Chats"
|
case .authenticated: "Chats"
|
||||||
|
default: "Connecting..."
|
||||||
}
|
}
|
||||||
Text(title)
|
Text(title)
|
||||||
.font(.system(size: 17, weight: .semibold))
|
.font(.system(size: 17, weight: .semibold))
|
||||||
|
|||||||
Reference in New Issue
Block a user