mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-06-14 17:08:21 +02:00
Rename error_source to source in bridge status
This commit is contained in:
parent
abbff16e66
commit
b4ad4f0921
|
@ -75,9 +75,9 @@ type BridgeState struct {
|
|||
Timestamp int64 `json:"timestamp"`
|
||||
TTL int `json:"ttl"`
|
||||
|
||||
ErrorSource string `json:"error_source,omitempty"`
|
||||
Error BridgeErrorCode `json:"error,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Source string `json:"source,omitempty"`
|
||||
Error BridgeErrorCode `json:"error,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
UserID id.UserID `json:"user_id,omitempty"`
|
||||
RemoteID string `json:"remote_id,omitempty"`
|
||||
|
@ -92,9 +92,9 @@ func (pong BridgeState) fill(user *User) BridgeState {
|
|||
}
|
||||
|
||||
pong.Timestamp = time.Now().Unix()
|
||||
pong.Source = "bridge"
|
||||
if len(pong.Error) > 0 {
|
||||
pong.TTL = 60
|
||||
pong.ErrorSource = "bridge"
|
||||
pong.Message = bridgeHumanErrors[pong.Error]
|
||||
} else {
|
||||
pong.TTL = 240
|
||||
|
|
Loading…
Reference in a new issue