-
-
Notifications
You must be signed in to change notification settings - Fork 116
Add room version 11 #1604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add room version 11 #1604
Changes from 14 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a9e5e21
Remove duplicate words.
clokep 3f5f44f
Add information on room version 11.
clokep 8c10763
Note some event changes.
clokep 3935bd1
Newsfragment
clokep 70985a7
Fix-up event schema.
clokep a8f9eb0
Apply suggestions from code review
clokep c0e93f2
Fix 'new in this version'.
clokep 7aac401
Clarify creator field.
clokep 9af2853
Fix-up event format & examples.
clokep f686f87
Move the Redactions section to the client section.
clokep 895b102
Reference the sender instead of the creator.
clokep 9bf3b9c
More links
clokep 042fd84
Even more links.
clokep e8d5a50
Fix order of headers.
clokep 2aee500
Fix typos.
clokep 9ed38bc
Clarify description of creator.
clokep e2310ed
Clean-up intro paragraphs for redactions.
clokep b0b6a89
Clean-up examples and language.
clokep 951f619
Review comments.
clokep 75b32c7
FIx-up markup tags.
clokep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add room version 11 as per [MSC3820](https://github.com/matrix-org/matrix-spec-proposals/pull/3820). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
Events in rooms of this version have the following structure: | ||
|
||
{{% definition path="api/server-server/definitions/pdu_v11" %}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
--- | ||
|
||
{{% added-in this=true %}} The top-level `origin`, `membership`, and `prev_state` properties | ||
are no longer protected from redaction. The [`m.room.create`](/client-server-api#mroomcreate) | ||
event now keeps the entire `content` property. The [`m.room.redaction`](/client-server-api#mroomredaction) | ||
event keeps the `redacts` property under `content`. The | ||
[`m.room.power_levels`](/client-server-api#mroompower_levels) event keeps the | ||
`invite` property under `content`. | ||
|
||
The full redaction algorithm follows. | ||
clokep marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Upon receipt of a redaction event, the server must strip off any keys | ||
not in the following list: | ||
|
||
- `event_id` | ||
- `type` | ||
- `room_id` | ||
- `sender` | ||
- `state_key` | ||
- `content` | ||
- `hashes` | ||
- `signatures` | ||
- `depth` | ||
- `prev_events` | ||
- `auth_events` | ||
- `origin_server_ts` | ||
|
||
The content object must also be stripped of all keys, unless it is one | ||
of the following event types: | ||
|
||
- [`m.room.member`](/client-server-api#mroommember) allows keys `membership`, `join_authorised_via_users_server`. | ||
Additionally, it allows the `signed` key of the `third_party_invite` key. | ||
- [`m.room.create`](/client-server-api#mroomcreate) allows all keys. | ||
- [`m.room.join_rules`](/client-server-api#mroomjoin_rules) allows keys `join_rule`, `allow`. | ||
- [`m.room.power_levels`](/client-server-api#mroompower_levels) allows keys | ||
`ban`, `events`, `events_default`, `invite`, `kick`, `redact`, `state_default`, | ||
`users`, `users_default`. | ||
- [`m.room.history_visibility`](/client-server-api#mroomhistory_visibility) | ||
allows key `history_visibility`. | ||
- [`m.room.redaction`](/client-server-api#mroomredaction) allows key `redacts`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.