docs-matrix-spec/data/event-schemas/examples
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
..
core Spec unsigned.membership property, per MSC4115 (#1847) 2024-06-10 12:17:27 +00:00
invite_room_state.json Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
knock_room_state.json Add knocking to the spec 2021-08-27 19:17:12 +01:00
m.accepted_terms.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.call.answer.yaml Add support for multi-stream VoIP (#1735) 2024-03-19 17:02:35 +00:00
m.call.candidates.yaml Add spec for MSC2746 (#1511) 2023-05-23 12:29:35 -06:00
m.call.hangup.yaml Add spec for MSC2746 (#1511) 2023-05-23 12:29:35 -06:00
m.call.invite.yaml Add support for multi-stream VoIP (#1735) 2024-03-19 17:02:35 +00:00
m.call.negotiate.yaml Add support for multi-stream VoIP (#1735) 2024-03-19 17:02:35 +00:00
m.call.reject.yaml Add spec for MSC2746 (#1511) 2023-05-23 12:29:35 -06:00
m.call.sdp_stream_metadata_changed.yaml Add support for muting in VoIP calls (#1755) 2024-03-26 19:10:55 +00:00
m.call.select_answer.yaml Add spec for MSC2746 (#1511) 2023-05-23 12:29:35 -06:00
m.direct.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.dummy.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.forwarded_room_key.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.fully_read.yaml Remove 'room_id' field from m.typing, m.receipt and m.fully_read examples and schema (#3679) 2022-05-09 01:28:17 -06:00
m.identity_server.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.ignored_user_list.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.key.verification.accept.yaml Define hkdf-hmac-sha256.v2 MAC method for SAS verification (#1412) 2023-02-09 23:58:16 -05:00
m.key.verification.cancel.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.key.verification.done.yaml spec verification in DMs and m.key.verification.ready/done 2021-08-27 19:17:11 +01:00
m.key.verification.key.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.key.verification.mac.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.key.verification.ready.yaml spec verification in DMs and m.key.verification.ready/done 2021-08-27 19:17:11 +01:00
m.key.verification.request.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.key.verification.start$m.sas.v1.yaml Define hkdf-hmac-sha256.v2 MAC method for SAS verification (#1412) 2023-02-09 23:58:16 -05:00
m.key.verification.start.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.marked_unread.yaml Spec for MSC2867 (Marking rooms as unread) (#1895) 2024-07-15 14:38:57 +01:00
m.policy.rule.room.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.policy.rule.server.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.policy.rule.user.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.presence.yaml Fix example MXC URI for m.presence 2021-08-27 19:17:09 +01:00
m.push_rules.yaml Remove the dont_notify and coalesce push rule actions. (#1501) 2023-05-03 09:39:49 -04:00
m.reaction.yaml Spec annotations (#1475) 2023-04-25 15:17:31 +01:00
m.receipt.yaml put the e back into erik 2023-11-12 01:55:45 +00:00
m.room.avatar.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.canonical_alias.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.create.yaml Add room version 11 (#1604) 2023-08-15 00:18:45 -06:00
m.room.encrypted$megolm.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.encrypted$olm.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.encryption.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.guest_access.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.history_visibility.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.join_rules$restricted.yaml Room versions 8 and 9: Restricted rooms (#3387) 2022-01-18 09:55:34 -07:00
m.room.join_rules.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.member$invite_room_state.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.member$join_authorised_via_users_server.yaml Room versions 8 and 9: Restricted rooms (#3387) 2022-01-18 09:55:34 -07:00
m.room.member$knock_room_state.yaml Add knocking to the spec 2021-08-27 19:17:12 +01:00
m.room.member$third_party_invite.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.member.yaml Fix /sync example (#2077) 2025-04-15 14:47:21 +01:00
m.room.message$m.audio.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.emote.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.file.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.image.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.key.verification.request.yaml add in-room m.key.verification.request msgtype 2022-10-04 17:49:36 -04:00
m.room.message$m.location.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.notice.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.server_notice.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.text.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.message$m.video.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.name.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.pinned_events.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.power_levels.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.redaction.yaml Add room version 11 (#1604) 2023-08-15 00:18:45 -06:00
m.room.server_acl.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.third_party_invite.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.tombstone.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room.topic.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room_key.withheld.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room_key.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room_key_request$cancel_request.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.room_key_request$request.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.secret.request.yaml make examples agree with schema 2022-11-01 17:56:29 -04:00
m.secret.send.yaml make examples agree with schema 2022-11-01 17:56:29 -04:00
m.space.child.yaml Add Spaces to the spec (#3610) 2022-01-17 10:03:14 -07:00
m.space.parent.yaml Add Spaces to the spec (#3610) 2022-01-17 10:03:14 -07:00
m.sticker.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.tag.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00
m.typing.yaml Move raw API and event schemas into /data directory 2021-08-27 19:16:39 +01:00