diff --git a/src/app/chat/core.nim b/src/app/chat/core.nim index 7e10e0b24b..4d3a9468d3 100644 --- a/src/app/chat/core.nim +++ b/src/app/chat/core.nim @@ -32,9 +32,6 @@ include event_handling include signal_handling proc init*(self: ChatController) = - # Initial state is disconnected and will change as soon as there's a peer - self.view.setConnected(false) - self.handleMailserverEvents() self.handleChatEvents() self.status.mailservers.init() diff --git a/ui/app/AppLayouts/Chat/ChatColumn.qml b/ui/app/AppLayouts/Chat/ChatColumn.qml index e5c6721d00..7bcc826bab 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn.qml @@ -62,6 +62,12 @@ StackLayout { Layout.fillWidth: true z: 60 Rectangle { + Component.onCompleted: { + if(!isConnected){ + connectedStatusRect.visible = true + } + } + id: connectedStatusRect Layout.fillWidth: true height: 40;