-
Notifications
You must be signed in to change notification settings - Fork 399
Support MSC3757: Restricting who can overwrite a state event #17513
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
Changes from 18 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7855b97
Support MSC3757
AndrewFerr 6ec215b
Add changelog
AndrewFerr 6a69213
Run power level tests on MSC3757 rooms
AndrewFerr e481238
Check if @-prefixed state key is not a user ID
AndrewFerr 248025d
Test MSC3757 auth rules
AndrewFerr a12238d
Support MSC3757 for room versions 9 and 11
AndrewFerr 663da8d
Skip redundant characters for some string searches
AndrewFerr c4cc4d8
Add explicit field to room version for MSC3757
AndrewFerr 5657863
Parametrize fewer power level unit tests
AndrewFerr e9d22ba
Lint
AndrewFerr 228d6b4
Return 400 for @-prefixed, non-userID state key
AndrewFerr e175871
Define test event type string once
AndrewFerr a841921
Lint
AndrewFerr 772d35a
Refactor state key parsing
AndrewFerr ba2ce94
Split & comment allow conditions
AndrewFerr 77af387
Drop support for room version 9
AndrewFerr 6f429b6
Refactor unit tests
AndrewFerr defeb6e
Use one expression for commented allow conditions
AndrewFerr 426f52b
Narrow caught error type
AndrewFerr 8c203af
Remove license header from new test file
AndrewFerr 0d901f7
Run Complement tests
AndrewFerr b16fa10
Make suffix test actually use suffix
AndrewFerr 77fc9d2
Test suffixed key without separator
AndrewFerr c0dceaf
Lock non-owned-state tests to non-MSC room version
AndrewFerr e1fa3ef
Test user ID in middle of state key
AndrewFerr 7bcd7a0
Rename admin to "room creator"
AndrewFerr d28c17b
Test state with key of a user ID not in the room
AndrewFerr 792b065
Always check the errcode in failure responses
AndrewFerr 89b20d4
Merge branch 'develop' into af/msc3757
sandhose 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 implementation of restricting who can overwrite a state event as proposed by [MSC3757](https://github.com/matrix-org/matrix-spec-proposals/pull/3757). |
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.
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.