From 5f6845c3997bd5478a1f51a8f108b71afa427a72 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 21 Jul 2025 13:46:40 +0300 Subject: Added the ability to delete users --- internal/client/ui/core/core.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/client/ui/core/core.go') 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()) } -- cgit v1.3.1