WIP: add support for MSC4140 (Delayed Events) #1840

Draft
eve wants to merge 6 commits from eve/ackduck:I903 into main

6 commits

Author SHA1 Message Date
2de95ff2fb feat: Implement support for MSC4140
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m17s
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 1m24s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 12m14s
2026-06-12 15:48:59 +00:00
7aa35a8693 feat: Implement db serialization/deserialisation for unit type. 2026-06-12 13:03:13 +00:00
30a029c535 refactor: Remove pointless database restriction on key type
Using a str or a [u8] as a key type is valid. There's no reason to dissallow
it, even though using these values as raw key exists as an alternative.
2026-06-12 13:03:13 +00:00
f28e3de475 build: Update to a new Ruma revision with MSC4140 features enabled 2026-06-12 13:02:47 +00:00
2ddc249972 refactor: Use helpers for sending message events 2026-06-12 12:53:36 +00:00
2e7ef60349 refactor: Use a shared helper function for submitting state events at room creation
On room creation, A list of initial state events may be provided that
should be submitted to the room after creation. These events
should be treated as any other state event and submitted to
the same checks.

With this change, state events submitted on room creation will be
submitted through the same helper as those through the usual endpoint.

The submission helper is moved to the timeline service to make it
available everywhere. This will be useful for implementing MSC4140
(issue #903).
2026-06-12 12:53:36 +00:00