summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/core.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-21 13:46:40 +0300
committerKyren223 <Kyren223@proton.me>2025-07-21 13:46:40 +0300
commit5f6845c3997bd5478a1f51a8f108b71afa427a72 (patch)
tree1a713c28657f15715f337286cc770e93d2739fd6 /internal/client/ui/core/core.go
parent3fcaf100334897e314a86a53576639410055989b (diff)
Added the ability to delete users
Diffstat (limited to 'internal/client/ui/core/core.go')
-rw-r--r--internal/client/ui/core/core.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go
index 8c0a336..7e42619 100644
--- a/internal/client/ui/core/core.go
+++ b/internal/client/ui/core/core.go
@@ -388,6 +388,7 @@ func (m *Model) updateConnected(message tea.Msg) tea.Cmd {
} else {
log.Println("received error:", msg.Error)
gateway.Disconnect()
+ state.Reset()
return ui.Transition(ui.NewAuth())
}
}
@@ -490,6 +491,7 @@ func (m *Model) updateAuthenticated(message tea.Msg) tea.Cmd {
err := "new connection from another location, closing this one"
if err == msg.Error {
gateway.Disconnect()
+ state.Reset()
return ui.Transition(ui.NewAuth())
}