Skip to content

Commit bce6c19

Browse files
authored
Merge branch 'main' into rav/history_sharing/upload_bundle
Signed-off-by: Richard van der Hoff <[email protected]>
2 parents 80db096 + 22d092b commit bce6c19

File tree

40 files changed

+1711
-1258
lines changed

40 files changed

+1711
-1258
lines changed

.github/workflows/detect-long-path.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- name: Check for changed files
2727
id: changed-files
28-
uses: tj-actions/changed-files@6f67ee9ac810f0192ea7b3d2086406f97847bcf9 # v45
28+
uses: tj-actions/changed-files@9b4bb2bedb217d3ede225b6b07ebde713177cd8f # v45
2929
- name: Detect long path
3030
env:
3131
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} # ignore the deleted files

bindings/matrix-sdk-ffi/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
66

77
## [Unreleased] - ReleaseDate
88

9+
Additions:
10+
11+
- Add room topic string to `StateEventContent`
12+
913
## [0.11.0] - 2025-04-11
1014

1115
Breaking changes:
@@ -20,7 +24,7 @@ Breaking changes:
2024
programs can set it to `true`.
2125

2226
- Matrix client API errors coming from API responses will now be mapped to `ClientError::MatrixApi`, containing both the
23-
original message and the associated error code and kind.
27+
original message and the associated error code and kind.
2428

2529
- `EventSendState` now has two additional variants: `CrossSigningNotSetup` and
2630
`SendingFromUnverifiedDevice`. These indicate that your own device is not

bindings/matrix-sdk-ffi/src/event.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub enum StateEventContent {
8383
RoomServerAcl,
8484
RoomThirdPartyInvite,
8585
RoomTombstone,
86-
RoomTopic,
86+
RoomTopic { topic: String },
8787
SpaceChild,
8888
SpaceParent,
8989
}
@@ -118,7 +118,11 @@ impl TryFrom<AnySyncStateEvent> for StateEventContent {
118118
AnySyncStateEvent::RoomServerAcl(_) => StateEventContent::RoomServerAcl,
119119
AnySyncStateEvent::RoomThirdPartyInvite(_) => StateEventContent::RoomThirdPartyInvite,
120120
AnySyncStateEvent::RoomTombstone(_) => StateEventContent::RoomTombstone,
121-
AnySyncStateEvent::RoomTopic(_) => StateEventContent::RoomTopic,
121+
AnySyncStateEvent::RoomTopic(content) => {
122+
let content = get_state_event_original_content(content)?;
123+
124+
StateEventContent::RoomTopic { topic: content.topic }
125+
}
122126
AnySyncStateEvent::SpaceChild(_) => StateEventContent::SpaceChild,
123127
AnySyncStateEvent::SpaceParent(_) => StateEventContent::SpaceParent,
124128
_ => bail!("Unsupported state event"),

0 commit comments

Comments
 (0)