From 34ea42aec02739ec4978e7a10500ca2d27066e8f Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Mon, 16 Dec 2024 16:00:17 +0100 Subject: [PATCH] feat(ffi): expose the linked chunk debug string function at the FFI layer --- bindings/matrix-sdk-ffi/src/room.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/matrix-sdk-ffi/src/room.rs b/bindings/matrix-sdk-ffi/src/room.rs index c1233b51151..124fc74be26 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 {