diff --git a/bridgestate.go b/bridgestate.go index d1c7ca4..ca1d9af 100644 --- a/bridgestate.go +++ b/bridgestate.go @@ -27,6 +27,7 @@ const ( GMListenError status.BridgeStateErrorCode = "gm-listen-error" GMFatalError status.BridgeStateErrorCode = "gm-listen-fatal-error" GMUnpaired status.BridgeStateErrorCode = "gm-unpaired" + GMUnpaired404 status.BridgeStateErrorCode = "gm-unpaired-entity-not-found" GMNotConnected status.BridgeStateErrorCode = "gm-not-connected" GMConnecting status.BridgeStateErrorCode = "gm-connecting" GMConnectionFailed status.BridgeStateErrorCode = "gm-connection-failed" @@ -44,6 +45,7 @@ func init() { GMListenError: "Error polling messages from Google Messages server, the bridge will try to reconnect", GMFatalError: "Fatal error polling messages from Google Messages server, please re-link the bridge", GMUnpaired: "Unpaired from Google Messages, please re-link the connection to continue using SMS/RCS", + GMUnpaired404: "Unpaired from Google Messages, please re-link the connection to continue using SMS/RCS", GMBrowserInactive: "Google Messages opened in another browser", GMBrowserInactiveTimeout: "Google Messages disconnected due to timeout", GMBrowserInactiveInactivity: "Google Messages disconnected due to inactivity", diff --git a/user.go b/user.go index 26e1cce..d82d5b6 100644 --- a/user.go +++ b/user.go @@ -474,7 +474,7 @@ func (user *User) Connect() bool { if errors.Is(err, events.ErrRequestedEntityNotFound) { go user.Logout(status.BridgeState{ StateEvent: status.StateBadCredentials, - Error: GMUnpaired, + Error: GMUnpaired404, Info: map[string]any{ "go_error": err.Error(), }, @@ -583,7 +583,7 @@ func (user *User) syncHandleEvent(event any) { if errors.Is(v.Error, events.ErrRequestedEntityNotFound) { go user.Logout(status.BridgeState{ StateEvent: status.StateBadCredentials, - Error: GMUnpaired, + Error: GMUnpaired404, Info: map[string]any{ "go_error": v.Error.Error(), },