docs-matrix-spec/data/api
Kévin Commaille c39c7d0680
Fix /sync example (#2077)
* Fix sync example

The same event should not appear in `state` and in the `timeline` so we cannot use the same event twice.

To provide a `state` example we assume that with lazy-loading the user did not get the state event for `@example:example.org`, so we add one since they sent a message in the timeline.

The events that are referenced include a `room_id`, which doesn't appear on this endpoint, so we copy them without it.

Finally, the `join` event of `@alice:example.org` is wrong because the sender does not match the state key, which wouldn't pass the authorization rules.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Fix the `m.room.member.yaml` example

This is a `join` event, and the `sender` doesn't match the `state_key`, so the event couldn't pass the authorization rules.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add changelog

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

---------

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-04-15 14:47:21 +01:00
..
application-service Document instance_id field of /thirdparty/protocols (#2051) 2025-02-13 17:29:56 +00:00
client-server Fix /sync example (#2077) 2025-04-15 14:47:21 +01:00
identity Clarify formats of string types in account sections (#2046) 2025-01-17 17:18:51 +00:00
push-gateway Clarify that pusher URLs have a fixed path (#1974) 2024-11-07 14:56:53 +00:00
server-server Add a v6 event format with correct depth limits (#2114) 2025-03-27 10:23:09 -06:00