Skip to content
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

Default PowerLevelContent.Invite to 0 per matrix spec #416

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

NickCao
Copy link
Contributor

@NickCao NickCao commented Sep 23, 2023

The default power level for invite was wrong in matrix spec v1.1[1], and has been fixed in v1.3, bringing us in line with synase[2].

[1] matrix-org/matrix-spec@136b5c9
[2] https://github.com/matrix-org/synapse/blob/v1.92.3/synapse/handlers/event_auth.py#L138

Pull Request Checklist

Signed-off-by: Nick Cao <nickcao@nichi.co>

@S7evinK
Copy link
Contributor

S7evinK commented Sep 29, 2023

Can you take a look at the failing tests please?

The default power level for invite was wrong in matrix spec v1.1[1],
and has been fixed in v1.3, bringing us in line with synase[2].

[1] matrix-org/matrix-spec@136b5c9
[2] https://github.com/matrix-org/synapse/blob/v1.92.3/synapse/handlers/event_auth.py#L138

Signed-off-by: Nick Cao <nickcao@nichi.co>
@NickCao
Copy link
Contributor Author

NickCao commented Sep 29, 2023

Can you take a look at the failing tests please?

Solved.

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (79fcff2) 58.76% compared to head (519cf56) 58.73%.

❗ Current head 519cf56 differs from pull request most recent head aabc552. Consider uploading reports for the commit aabc552 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #416      +/-   ##
==========================================
- Coverage   58.76%   58.73%   -0.03%     
==========================================
  Files          51       51              
  Lines        7098     7098              
==========================================
- Hits         4171     4169       -2     
- Misses       2536     2538       +2     
  Partials      391      391              
Files Coverage Δ
eventcontent.go 75.16% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@S7evinK S7evinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@S7evinK S7evinK merged commit 77f02e6 into matrix-org:main Sep 29, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants