Skip to content

Conversation

RiotRobot
Copy link
Contributor

Backport e119bf9 from #4937.

* Support for creator power level

Adds support for infinite power level specified by [MSC4289](matrix-org/matrix-spec-proposals#4289).

* Update unit test

* Hardcode versions

as room versions strings aren't ordered

* Add test for v12 rooms

* Use more compact syntax

Co-authored-by: R Midhun Suresh <[email protected]>

* Fix doc

Co-authored-by: R Midhun Suresh <[email protected]>

* Fix additionalCreators from PR edit

* Split out hydra room version check

* Move power level logic into room state

Which already has knowledge of the room create event

* Add docs

* Fix unused bits

* Fix docs

* Fix lying docstring

* Reverse logic for hydra semantics

Assume unknown room versions do use hydra

* Use backticks

Co-authored-by: Richard van der Hoff <[email protected]>

* Switch back to hardcoding just the two hydra versions

---------

Co-authored-by: R Midhun Suresh <[email protected]>
Co-authored-by: Richard van der Hoff <[email protected]>
(cherry picked from commit e119bf9)
@dbkr dbkr merged commit d21adf5 into staging Aug 8, 2025
36 checks passed
@dbkr dbkr deleted the backport-4937-to-staging branch August 8, 2025 14:09
robintown pushed a commit to robintown/matrix-js-sdk that referenced this pull request Aug 15, 2025
For js-sdk users, this includes the following:

    -   Send stable identifier `sender_device_keys` for MSC4147 (Including device keys with Olm-encrypted events).
        ([matrix-org#4964](matrix-org/matrix-rust-sdk#4964))

    -   Check the `sender_device_keys` field on _all_ incoming Olm-encrypted to-device messages and ignore any to-device messages which include the field but whose data is invalid (as per [MSC4147](matrix-org/matrix-spec-proposals#4147)).
        ([matrix-org#4922](matrix-org/matrix-rust-sdk#4922))

    -   Fix bug which caused room keys to be unnecessarily rotated on every send in the presence of blacklisted/withheld devices in the room.
        ([matrix-org#4954](matrix-org/matrix-rust-sdk#4954))

    -   Fix [matrix-rust-sdk#2729](matrix-org/matrix-rust-sdk#2729) which in rare cases can cause room key oversharing.
        ([matrix-org#4975](matrix-org/matrix-rust-sdk#4975))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants