Clear state flags when disconnecting

This commit is contained in:
Tulir Asokan 2024-01-16 14:17:18 +02:00
parent 9b498149be
commit 9c6ef9b665

View file

@ -510,6 +510,10 @@ func (user *User) DeleteConnection() {
user.unlockedDeleteConnection()
user.longPollingError = errors.New("not connected")
user.phoneResponding = true
user.batteryLow = false
user.switchedToGoogleLogin = false
user.ready = false
user.browserInactiveType = ""
}
func (user *User) HasSession() bool {