Add experimental and incomplete support for MSC4306: Thread Subscriptions.#18674
Merged
reivilibre merged 13 commits intodevelopfrom Jul 21, 2025
Merged
Add experimental and incomplete support for MSC4306: Thread Subscriptions.#18674reivilibre merged 13 commits intodevelopfrom
reivilibre merged 13 commits intodevelopfrom
Conversation
reivilibre
commented
Jul 10, 2025
3f39f20 to
29d4fc3
Compare
82fc0d9 to
07bbbcf
Compare
fe2541b to
79ecd7c
Compare
79ecd7c to
fdd1d63
Compare
|
|
||
| CONSTRAINT thread_subscriptions_fk_rooms | ||
| FOREIGN KEY (room_id) | ||
| REFERENCES rooms(room_id), |
Member
There was a problem hiding this comment.
We'll need to delete from this during purge room
Contributor
Author
There was a problem hiding this comment.
do you think a ON DELETE CASCADE is fair here or do we need to be a bit more paginated about the deletion?
Contributor
Author
There was a problem hiding this comment.
oh, to be fair .... we will already delete subscriptions when the event is deleted, so when deleting the actual room there shouldn't be anything left to delete. In that case I think ON DELETE CASCADE is fair as a last-resort. I'll add that + a comment saying as much
97ab7ea to
bc8bc50
Compare
erikjohnston
approved these changes
Jul 21, 2025
3 tasks
2 tasks
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
Aug 7, 2025
Tested on NetBSD 9 amd64 (federation, multiple clients) # Synapse 1.135.0 (2025-08-01) ## Features - Add `recaptcha_private_key_path` and `recaptcha_public_key_path` config option. ([\#17984](element-hq/synapse#17984), [\#18684](element-hq/synapse#18684)) - Add plain-text handling for rich-text topics as per [MSC3765](matrix-org/matrix-spec-proposals#3765). ([\#18195](element-hq/synapse#18195)) - If enabled by the user, server admins will see [soft failed](https://spec.matrix.org/v1.13/server-server-api/#soft-failure) events over the Client-Server API. ([\#18238](element-hq/synapse#18238)) - Add experimental support for [MSC4277: Harmonizing the reporting endpoints](matrix-org/matrix-spec-proposals#4277). ([\#18263](element-hq/synapse#18263)) - Add ability to limit amount of media uploaded by a user in a given time period. ([\#18527](element-hq/synapse#18527)) - Enable workers to write directly to the device lists stream and handle device list updates, reducing load on the main process. ([\#18581](element-hq/synapse#18581)) - Support arbitrary profile fields. Contributed by @clokep. ([\#18635](element-hq/synapse#18635)) - Advertise support for Matrix v1.12. ([\#18647](element-hq/synapse#18647)) - Add an option to issue redactions as an admin user via the [admin redaction endpoint](https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#redact-all-the-events-of-a-user). ([\#18671](element-hq/synapse#18671)) - Add experimental and incomplete support for [MSC4306: Thread Subscriptions](https://github.com/matrix-org/matrix-spec-proposals/blob/rei/msc_thread_subscriptions/proposals/4306-thread-subscriptions.md). ([\#18674](element-hq/synapse#18674)) - Include `event_id` when getting state with `?format=event`. Contributed by @tulir @ Beeper. ([\#18675](element-hq/synapse#18675))
reivilibre
added a commit
that referenced
this pull request
Sep 11, 2025
…to Sliding Sync when MSC4306 and MSC4186 are enabled. (#18695) Closes: #18436 Implements: matrix-org/matrix-spec-proposals#4308 Follows: #18674 Adds an extension to Sliding Sync and a companion endpoint needed for backpaginating missed thread subscription changes, as described in MSC4308 --------- Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements: MSC4306 (partially)
Commit-by-commit review suggested.
What's missing:
Add
thread_subscriptionstableAdd stream backed by
thread_subscriptionstableAdd thread subscriptions handler
Add thread subscriptions endpoints
aside: note that EventID only applies to room versions 1 and 2
Add tests for thread subscription endpoints
docker workers: register thread_subscriptions worker as worker type