Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bindings/matrix-sdk-ffi/src/spaces.rs
Copy link
Member Author

@pixlwave pixlwave Nov 25, 2025

Choose a reason for hiding this comment

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

Note: I'm open to naming suggestions as I wasn't massively confident on what to call this (and the matrix_sdk) function.

Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ impl SpaceService {
})))
}

/// Returns a flattened list containing all the spaces where the user has
/// permission to send `m.space.child` state events.
///
/// Note: Unlike [`Self::joined_spaces()`], this method does not recompute
/// the space graph, nor does it notify subscribers about changes.
pub async fn editable_spaces(&self) -> Vec<SpaceRoom> {
self.inner.editable_spaces().await.into_iter().map(Into::into).collect()
}

/// Returns a `SpaceRoomList` for the given space ID.
pub async fn space_room_list(
&self,
Expand Down
Loading
Loading