mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-28 22:14:10 +01:00
1.6 KiB
1.6 KiB
{{% added-in this=true %}} The top-level origin, membership, and prev_state properties
are no longer protected from redaction. The m.room.create
event now keeps the entire content property. The m.room.redaction
event keeps the redacts property under content. The
m.room.power_levels event keeps the
invite property under content.
The full redaction algorithm follows.
Upon receipt of a redaction event, the server must strip off any keys not in the following list:
event_idtyperoom_idsenderstate_keycontenthashessignaturesdepthprev_eventsauth_eventsorigin_server_ts
The content object must also be stripped of all keys, unless it is one of the following event types:
m.room.memberallows keysmembership,join_authorised_via_users_server. Additionally, it allows thesignedkey of thethird_party_invitekey.m.room.createallows all keys.m.room.join_rulesallows keysjoin_rule,allow.m.room.power_levelsallows keysban,events,events_default,invite,kick,redact,state_default,users,users_default.m.room.history_visibilityallows keyhistory_visibility.m.room.redactionallows keyredacts.