Skip to content

Transform events with client metadata before serialising in /event response.#19340

Merged
reivilibre merged 4 commits intodevelopfrom
rei/transform_events
Jan 6, 2026
Merged

Transform events with client metadata before serialising in /event response.#19340
reivilibre merged 4 commits intodevelopfrom
rei/transform_events

Conversation

@reivilibre
Copy link
Copy Markdown
Contributor

@reivilibre reivilibre commented Jan 5, 2026

This pull request is intended for commit-by-commit review; at least the last commit in the series is going to be best standalone.

Original commit schedule, with full messages:

  1. Fix /event/ endpoint not transforming event with per-requester metadata

  2. Pass notif_event through filter_events_for_client
    Not aware of an actual issue here, but seems silly to bypass it

  3. Call it filter_and_transform_events_for_client to make it more obvious

@reivilibre reivilibre requested a review from a team as a code owner January 5, 2026 16:41
Copy link
Copy Markdown
Member

@devonh devonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look appropriate to me.
Nice find!

@reivilibre reivilibre merged commit cd252db into develop Jan 6, 2026
45 checks passed
@reivilibre reivilibre deleted the rei/transform_events branch January 6, 2026 15:53
reivilibre added a commit that referenced this pull request Feb 11, 2026
Part of: MSC4354 whose experimental feature tracking issue is
#19409

Follows: #19340 (a necessary bugfix for `/event/` to set this metadata)

Partially supersedes: #18968

This PR implements the first batch of work to support MSC4354 Sticky
Events.

Sticky events are events that have been configured with a finite
'stickiness' duration,
capped to 1 hour per current MSC draft.

Whilst an event is sticky, we provide stronger delivery guarantees for
the event, both to
our clients and to remote homeservers, essentially making it reliable
delivery as long as we
have a functional connection to the client/server and until the
stickiness expires.

This PR merely supports creating sticky events and receiving the sticky
TTL metadata in clients.
It is not suitable for trialling sticky events since none of the other
semantics are implemented.

Contains a temporary SQLite workaround due to a bug in our supported
version enforcement: #19452

---------

Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
Co-authored-by: Eric Eastwood <erice@element.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants