From 13fdedd9fcb7eda0fc1dcc42045192f8b0d8759b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 14 Dec 2023 01:36:43 +0200 Subject: [PATCH] Fix connected bridge state after switching to QR login --- user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user.go b/user.go index 648cb9f..dac06f3 100644 --- a/user.go +++ b/user.go @@ -730,6 +730,8 @@ func (user *User) handleAccountChange(v *events.AccountChange) { go user.sendMarkdownBridgeAlert(true, "The bridge will not work when the account-based pairing method is enabled in the Google Messages app. Unlink other devices and switch back to the QR code method to continue using the bridge.") } else { go user.sendMarkdownBridgeAlert(false, "Switched back to QR pairing, bridge should work now") + // Assume connection is ready now even if it wasn't before + user.ready = true } } user.BridgeState.Send(status.BridgeState{StateEvent: status.StateConnected})