Update pairing type disconnection error messages
This commit is contained in:
parent
b134453801
commit
c360b69ca6
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ func init() {
|
||||||
GMBrowserInactiveTimeout: "Google Messages disconnected due to timeout",
|
GMBrowserInactiveTimeout: "Google Messages disconnected due to timeout",
|
||||||
GMBrowserInactiveInactivity: "Google Messages disconnected due to inactivity",
|
GMBrowserInactiveInactivity: "Google Messages disconnected due to inactivity",
|
||||||
GMPhoneNotResponding: "Your phone is not responding, please check that it is connected to the internet. You may need to open the Messages app on your phone for it to reconnect.",
|
GMPhoneNotResponding: "Your phone is not responding, please check that it is connected to the internet. You may need to open the Messages app on your phone for it to reconnect.",
|
||||||
GMSwitchedToGoogleLogin: "Please switch to the QR code pairing method in the Google Messages app to continue using SMS/RCS",
|
GMSwitchedToGoogleLogin: "You switched to Google account pairing, please log in to continue using SMS/RCS",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
4
user.go
4
user.go
|
@ -812,9 +812,9 @@ func (user *User) handleAccountChange(v *events.AccountChange) {
|
||||||
user.switchedToGoogleLogin = v.GetEnabled() || v.IsFake
|
user.switchedToGoogleLogin = v.GetEnabled() || v.IsFake
|
||||||
if !v.IsFake {
|
if !v.IsFake {
|
||||||
if user.switchedToGoogleLogin {
|
if user.switchedToGoogleLogin {
|
||||||
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.")
|
go user.sendMarkdownBridgeAlert(true, "Switched to Google account pairing, please switch back or relogin with `login-google`.")
|
||||||
} else {
|
} else {
|
||||||
go user.sendMarkdownBridgeAlert(false, "Switched back to QR pairing, bridge should work now")
|
go user.sendMarkdownBridgeAlert(false, "Switched back to QR pairing, bridge should be reconnected")
|
||||||
// Assume connection is ready now even if it wasn't before
|
// Assume connection is ready now even if it wasn't before
|
||||||
user.ready = true
|
user.ready = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue