dendrite/syncapi/sync
Cnly 74fd292403 Fix latest sync pos used as since pos in requestpool.go
Previously, currPos, obtained using notifier.CurrentPosition(), is passed
to GetNotifyChannel. Since this is already the latest position on the
server, the client won't get updates until (1) a even newer event arrives at
the server, or (2) the /sync request times out.

(2) above is possible because when it times out, notifier calculates
currentSyncForUser based on syncReq, which contains the correct since pos
token that the client sent the server.

Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-06-27 04:02:43 +08:00
..
notifier.go Fix sync position with partial info used as complete one in syncserver and notifier 2019-06-26 22:56:58 +08:00
notifier_test.go Add a simple test for EDU-only updates in notifier_test.go 2019-06-26 18:00:50 +08:00
request.go Fix more linting issues and docs 2019-06-26 17:46:08 +08:00
requestpool.go Fix latest sync pos used as since pos in requestpool.go 2019-06-27 04:02:43 +08:00
userstream.go Add typing notifications to /sync responses - fixes #635 2019-06-25 15:28:52 +08:00