1.2 KiB
1.2 KiB
在收到修订事件(redaction event)后,服务器必须去除除以下列表外的所有字段:
event_id
type
room_id
sender
state_key
content
hashes
signatures
depth
prev_events
auth_events
origin_server_ts
content 对象中的所有字段也必须被移除,除非该事件类型属于以下之一:
m.room.member
允许保留字段membership
、join_authorised_via_users_server
,此外允许在third_party_invite
字段下的signed
字段。m.room.create
允许保留所有字段。m.room.join_rules
允许保留字段join_rule
、allow
。m.room.power_levels
允许保留字段ban
、events
、events_default
、invite
、kick
、redact
、state_default
、users
、users_default
。m.room.history_visibility
允许保留字段history_visibility
。m.room.redaction
允许保留字段redacts
。