diff --git a/user.go b/user.go index 4d53094b..1d43513e 100644 --- a/user.go +++ b/user.go @@ -385,12 +385,16 @@ func (user *User) startupTryConnect(retryCount int) { case signalmeow.SignalConnectionEventLoggedOut: user.log.Debug().Msg("Sending BadCredentials BridgeState") + defaultMessage := "You have been logged out of Signal, please reconnect" if err == nil { user.BridgeState.Send(status.BridgeState{StateEvent: status.StateBadCredentials, Message: "You have been logged out of Signal, please reconnect"}) } else { user.BridgeState.Send(status.BridgeState{StateEvent: status.StateBadCredentials, Message: err.Error()}) } user.clearMySignalKeys() + if roomID := user.GetManagementRoomID(); roomID != "" { + user.bridge.Bot.SendNotice(roomID, defaultMessage) + } case signalmeow.SignalConnectionEventError: user.log.Debug().Msg("Sending UnknownError BridgeState")