diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-06-19 13:29:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 13:29:27 +0100 |
commit | 7f26b0cd13534ba235c2bf0a7220d3462ca8e9da (patch) | |
tree | 5e7728365d7cbb7d5366b704717397639ea92ad8 /syncapi/sync/request.go | |
parent | 72444e4a4f31b70dfb7ddd875ef874f637699dce (diff) |
Bind build support, further Yggdrasil demo updates (#1152)
* Add gobind builds for Yggdrasil demo
* Massage client API a bit
* Fix build
* Fix gobind build
* Fix gobind client API setup
* Tweaks
* Tweaks
* Update sytest-whitelist, add comment
* Default to sending push rules on initial sync
Diffstat (limited to 'syncapi/sync/request.go')
-rw-r--r-- | syncapi/sync/request.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/syncapi/sync/request.go b/syncapi/sync/request.go index beeaa40f..5dd92c85 100644 --- a/syncapi/sync/request.go +++ b/syncapi/sync/request.go @@ -62,6 +62,10 @@ func newSyncRequest(req *http.Request, device userapi.Device) (*syncRequest, err } since = &tok } + if since == nil { + tok := types.NewStreamToken(0, 0) + since = &tok + } timelineLimit := defaultTimelineLimit // TODO: read from stored filters too filterQuery := req.URL.Query().Get("filter") |