aboutsummaryrefslogtreecommitdiff
path: root/syncapi/types/types.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-01-13 17:29:46 +0000
committerGitHub <noreply@github.com>2021-01-13 17:29:46 +0000
commitd8fba52e97dd73f64681aa67eb9d2dfeb3459a25 (patch)
tree2b1b6372f0e1bc73209b561e046d721f5ca2394d /syncapi/types/types.go
parentbb9e6a1281807ff76a67219a8cb59e1dadac0419 (diff)
Simplify send-to-device messaging (#1702)
* Simplify send-to-device messaging * Don't return error if there's no work to do * Remove SQLite migrations for now * Tweak Postgres migrations * Tweaks * Fixes * Cleanup separately * Fix SQLite migration
Diffstat (limited to 'syncapi/types/types.go')
-rw-r--r--syncapi/types/types.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/syncapi/types/types.go b/syncapi/types/types.go
index 90356f7d..4ccc8a48 100644
--- a/syncapi/types/types.go
+++ b/syncapi/types/types.go
@@ -492,14 +492,11 @@ func NewLeaveResponse() *LeaveResponse {
return &res
}
-type SendToDeviceNID int
-
type SendToDeviceEvent struct {
gomatrixserverlib.SendToDeviceEvent
- ID SendToDeviceNID
- UserID string
- DeviceID string
- SentByToken *StreamingToken
+ ID StreamPosition
+ UserID string
+ DeviceID string
}
type PeekingDevice struct {