Skip to content

Commit

Permalink
feat(ffi): expose the linked chunk debug string function at the FFI l…
Browse files Browse the repository at this point in the history
…ayer
  • Loading branch information
bnjbvr committed Dec 16, 2024
1 parent cae7e43 commit 34ea42a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bindings/matrix-sdk-ffi/src/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,13 @@ impl Room {

Ok(handle)
}

/// Return a debug representation for the internal room events data
/// structure, one line per entry in the resulting vector.
pub async fn room_events_debug_string(&self) -> Result<Vec<String>, ClientError> {
let (cache, _drop_guards) = self.inner.event_cache().await?;
Ok(cache.debug_string().await)
}
}

impl From<matrix_sdk::room::knock_requests::KnockRequest> for KnockRequest {
Expand Down

0 comments on commit 34ea42a

Please sign in to comment.