fix(state-res): Derive sender power from the create event when sorting #2143
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!2143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "eleboucher/continuwuity:fix/state-res-creator-power"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
get_power_level_for_senderreturned zero when an event had nom.room.power_levelsin its auth events. That's every event at the start of a room, where the create event's defaults apply and the creator is 100, so creators sorted as powerless and state resolution could pick a different winner to other servers on the same DAG.Also grants creators
Int::MAXin v12 rooms.Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
@ -580,0 +652,4 @@return Ok(false);}let content: AdditionalCreators = from_json_str(create_event.content().get())?;This should be done earlier on so that the creator check can also check against the
creatorcontent field (v1-v10). Believe it or not the creator in content can be different to the senderff992dfcbe2c0941b8702c0941b87048dc891c7548dc891c7557dff2f38b