Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

WIP: Send ephemeral events to appservices #8366

Closed
wants to merge 8 commits into from

Conversation

Half-Shot
Copy link
Collaborator

@Half-Shot Half-Shot commented Sep 21, 2020

Fixes #2954

This is a super WIP change to get synapse to send events to appservices, using the un-specced /_matrix/app/unstable/uk.half-shot.appservice/ephemeral endpoint (implementing this comment https://github.com/matrix-org/matrix-doc/pull/2409/files#r491375414).

Currently this sends typing, read receipts, and presence to appservices. Device messages may take another path, as they aren't typical EDUs and need to be retried, whereas these events are expected to be dropped if they don't reach the appservice.

There are some inefficiencies in this code that I'm less pleased with, like determining which appservices should see presence has some bad worst case performance.

@clokep clokep added the X-Awaiting-Changes A contributed PR which needs changes and re-review before it can be merged label Oct 15, 2020
@clokep
Copy link
Member

clokep commented Nov 30, 2020

@Half-Shot Can this be closed now that a bunch of this was moved into a separate PR? Or are you planning to rebase it with the remaining bits?

@Half-Shot
Copy link
Collaborator Author

Yeah, I'll likely do this PR again based upon latest so this can be closed.

@Half-Shot Half-Shot closed this Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
X-Awaiting-Changes A contributed PR which needs changes and re-review before it can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send EDUs to appservices
2 participants