mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
feat(bindings): added join room by id to ffi
This commit is contained in:
@@ -751,6 +751,11 @@ impl Client {
|
||||
matrix_sdk::room_directory_search::RoomDirectorySearch::new((*self.inner).clone()),
|
||||
))
|
||||
}
|
||||
|
||||
pub async fn join_room_by_id(&self, room_id: String) -> Result<Arc<Room>, ClientError> {
|
||||
let room = self.inner.join_room_by_id(room_id.into()).await?;
|
||||
Ok(Arc::new(Room::new(room)))
|
||||
}
|
||||
}
|
||||
|
||||
#[uniffi::export(callback_interface)]
|
||||
|
||||
Reference in New Issue
Block a user