diff --git a/bindings/matrix-sdk-ffi/src/room.rs b/bindings/matrix-sdk-ffi/src/room.rs index c1233b5115..124fc74be2 100644 --- a/bindings/matrix-sdk-ffi/src/room.rs +++ b/bindings/matrix-sdk-ffi/src/room.rs @@ -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, ClientError> { + let (cache, _drop_guards) = self.inner.event_cache().await?; + Ok(cache.debug_string().await) + } } impl From for KnockRequest {