Use the same helper for submitting state events on room creation and on state endpoint #1799

Open
eve wants to merge 1 commit from eve/ackduck:room_creation_events into main

1 commit

Author SHA1 Message Date
6656a2b113 refactor: Use a shared helper function for submitting state events at room creation
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) Successful in 9s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 2m42s
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 25m2s
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-05-27 11:51:26 +00:00