diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-04-19 09:51:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 09:51:02 +0100 |
commit | 7e745665a47058209f7f1fcf51c50ff91c43c7c4 (patch) | |
tree | b32e4d99f7819ce526c436ea109aa21c865e8f6a /internal | |
parent | abf71649b0a27ddc564105f94db270696698ecd5 (diff) |
Change `pushkey_ts` to be seconds (fix #2354) (#2358)
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pushgateway/pushgateway.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/internal/pushgateway/pushgateway.go b/internal/pushgateway/pushgateway.go index 88c326eb..1817a040 100644 --- a/internal/pushgateway/pushgateway.go +++ b/internal/pushgateway/pushgateway.go @@ -3,8 +3,6 @@ package pushgateway import ( "context" "encoding/json" - - "github.com/matrix-org/gomatrixserverlib" ) // A Client is how interactions with a Push Gateway is done. @@ -47,11 +45,11 @@ type Counts struct { } type Device struct { - AppID string `json:"app_id"` // Required - Data map[string]interface{} `json:"data"` // Required. UNSPEC: Sytests require this to allow unknown keys. - PushKey string `json:"pushkey"` // Required - PushKeyTS gomatrixserverlib.Timestamp `json:"pushkey_ts,omitempty"` - Tweaks map[string]interface{} `json:"tweaks,omitempty"` + AppID string `json:"app_id"` // Required + Data map[string]interface{} `json:"data"` // Required. UNSPEC: Sytests require this to allow unknown keys. + PushKey string `json:"pushkey"` // Required + PushKeyTS int64 `json:"pushkey_ts,omitempty"` + Tweaks map[string]interface{} `json:"tweaks,omitempty"` } type Prio string |