diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-21 13:46:40 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-21 13:46:40 +0300 |
| commit | 5f6845c3997bd5478a1f51a8f108b71afa427a72 (patch) | |
| tree | 1a713c28657f15715f337286cc770e93d2739fd6 /internal/client/ui/core/core.go | |
| parent | 3fcaf100334897e314a86a53576639410055989b (diff) | |
Added the ability to delete users
Diffstat (limited to 'internal/client/ui/core/core.go')
| -rw-r--r-- | internal/client/ui/core/core.go | 2 |
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()) } |
