feat(ffi): expose the linked chunk debug string function at the FFI layer

This commit is contained in:
Benjamin Bouvier
2024-12-16 16:00:17 +01:00
parent cae7e43b91
commit 34ea42aec0

View File

@@ -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 {