Fixed loading screen not animating after losing connection

This commit is contained in:
2025-01-14 17:55:19 +02:00
parent fd43d51d91
commit 2e1707c45b

View File

@@ -186,7 +186,7 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd {
state.UserID = nil
m.connected = false
m.timeout = initialTimeout
return gateway.Connect(m.privKey, connectionTimeout)
return tea.Batch(gateway.Connect(m.privKey, connectionTimeout), m.loading.Init())
case *packet.Error:
err := "new connection from another location, closing this one"