Skip to content

Commit

Permalink
Fix connected bridge state after switching to QR login
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 13, 2023
1 parent 5b1f6e4 commit 13fdedd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 13fdedd

Please sign in to comment.