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