Fix connected bridge state after switching to QR login

This commit is contained in:
Tulir Asokan 2023-12-14 01:36:43 +02:00
parent 5b1f6e4c7b
commit 13fdedd9fc

View file

@ -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})