Skip to content

Commit eaf211f

Browse files
committed
Add changelog entries
Signed-off-by: Kévin Commaille <[email protected]>
1 parent a47961a commit eaf211f

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

bindings/matrix-sdk-ffi/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ All notable changes to this project will be documented in this file.
1515

1616
### Breaking changes:
1717

18+
- The `creator` field of `RoomInfo` has been renamed to `creators` and can now contain a list of
19+
user IDs, to reflect that a room can now have several creators, as introduced in room version 12.
20+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
21+
- The `PowerLevel` type was introduced to represent power levels instead of `i64` to differentiate
22+
the infinite power level of creators, as introduced in room version 12. It is used in
23+
`suggested_role_for_power_level`, `suggested_power_level_for_role` and `RoomMember`.
24+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
1825
- `RoomPreview::info()` doesn't return a result anymore. All unknown join rules are handled in the
1926
`JoinRule::Custom` variant.
2027
([#5337](https://github.com/matrix-org/matrix-rust-sdk/pull/5337))

crates/matrix-sdk-base/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file.
77
## [Unreleased] - ReleaseDate
88

99
### Features
10+
- [**breaking**] `RoomCreateWithCreatorEventContent` has a new field
11+
`additional_creators` that allows to specify additional room creators beside
12+
the user sending the `m.room.create` event, introduced with room version 12.
13+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
1014
- [**breaking**] The `RoomInfo` method now remembers the inviter at the time
1115
when the `BaseClient::room_joined()` method was called. The caller is
1216
responsible to remember the inviter before a server request to join the room
@@ -16,6 +20,19 @@ All notable changes to this project will be documented in this file.
1620
([#5390](https://github.com/matrix-org/matrix-rust-sdk/pull/5390))
1721

1822
### Refactor
23+
- [**breaking**] `SyncOrStrippedState<RoomPowerLevelsEventContent>::power_levels()`
24+
takes `AuthorizationRules` and a list of creators, because creators can have
25+
infinite power levels, as introduced in room version 12.
26+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
27+
- [**breaking**] `RoomMember::power_level()` and
28+
`RoomMember::normalized_power_level()` now use `UserPowerLevel` to represent
29+
power levels instead of `i64` to differentiate the infinite power level of
30+
creators, as introduced in room version 12.
31+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
32+
- [**breaking**] The `creator()` methods of `Room` and `RoomInfo` have been
33+
renamed to `creators()` and can now return a list of user IDs, to reflect that
34+
a room can have several creators, as introduced in room version 12.
35+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
1936
- [**breaking**] `RoomInfo::room_version_or_default()` was replaced with
2037
`room_version_rules_or_default()`. The room version should only be used for
2138
display purposes. The rules contain flags for all the differences in behavior

crates/matrix-sdk/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
### Features
1010

11+
- [**breaking**] `RoomMemberRole` has a new `Creator` variant, that
12+
differentiates room creators with infinite power levels, as introduced in room
13+
version 12.
14+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
1115
- Add `Account::fetch_account_data_static` to fetch account data from the server
1216
with a statically-known type, with a signature similar to
1317
`Account::account_data`.
@@ -21,6 +25,11 @@ All notable changes to this project will be documented in this file.
2125

2226
### Refactor
2327

28+
- [**breaking**] `RoomMemberRole::suggested_role_for_power_level()` and
29+
`RoomMemberRole::suggested_power_level()` now use `UserPowerLevel` to represent
30+
power levels instead of `i64` to differentiate the infinite power level of
31+
creators, as introduced in room version 12.
32+
([#5436](https://github.com/matrix-org/matrix-rust-sdk/pull/5436))
2433
- [**breaking**] The `reason` argument of `Room::report_room()` is now required,
2534
due to a clarification in the spec.
2635
([#5337](https://github.com/matrix-org/matrix-rust-sdk/pull/5337))

0 commit comments

Comments
 (0)