This repository was archived by the owner on Nov 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 667
Add typing notifications to /sync responses - fixes #635 #718
Merged
Cnly
merged 25 commits into
matrix-org:master
from
Cnly:syncapi-typing-notifications-635
Jul 12, 2019
Merged
Add typing notifications to /sync responses - fixes #635 #718
Cnly
merged 25 commits into
matrix-org:master
from
Cnly:syncapi-typing-notifications-635
Jul 12, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Alex Chen <minecnly@gmail.com>
f056bec
to
b896fdc
Compare
Could you fix the linting? Cyclomatic complexity just means the function has too many branching statements (it is indeed annoying but helps keep functions to a reasonable number of lines). Also during testing I received a stack trace whenever sending a typing event:
|
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Linting, complexity and nil pointer dereference should all be fixed now. |
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
…r and notifier Signed-off-by: Alex Chen <minecnly@gmail.com>
…ypingEvent Signed-off-by: Alex Chen <minecnly@gmail.com>
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>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
…elta") Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Just refined some docs. The PR is now ready for review! :) |
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
Also, please merge master into this branch. (The fact testfile is so easy to conflict on makes me a little worried). |
Signed-off-by: Alex Chen <minecnly@gmail.com>
Signed-off-by: Alex Chen <minecnly@gmail.com>
anoadragon453
approved these changes
Jul 12, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! other than just some small grammatical things
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Cnly
added a commit
to Cnly/dendrite
that referenced
this pull request
Jul 19, 2019
In 29841be (matrix-org#718), EDUs are added to /sync responses for rooms listed in joinedRoomIDs returned by addPDUDeltaToResponse. However this list may contain rooms other than those currently joined. Some variable renamings are done to make golangci-lint pass. Signed-off-by: Alex Chen <minecnly@gmail.com>
2 tasks
Trion129
pushed a commit
to Trion129/dendrite
that referenced
this pull request
Jul 31, 2019
…org#752) In 29841be (matrix-org#718), EDUs are added to /sync responses for rooms listed in joinedRoomIDs returned by addPDUDeltaToResponse. However this list may contain rooms other than those currently joined. Some variable renamings are done to make golangci-lint pass. Signed-off-by: Alex Chen minecnly@gmail.com
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new consumer for typing notifications in syncapi. It also brings changes to syncserver.go and some related files so EDUs can better fit in /sync responses.
Fixes #635.
Fixes #574.
Signed-off-by: Alex Chen minecnly@gmail.com
Pull Request Checklist
testfile
as specified in docs/sytest.md