diff --git a/crates/matrix-sdk/src/event_cache/linked_chunk.rs b/crates/matrix-sdk/src/event_cache/linked_chunk.rs index e11f38f34..7490e0dad 100644 --- a/crates/matrix-sdk/src/event_cache/linked_chunk.rs +++ b/crates/matrix-sdk/src/event_cache/linked_chunk.rs @@ -736,6 +736,11 @@ impl Chunk { self.identifier } + /// Get the content of the chunk. + pub fn content(&self) -> &ChunkContent { + &self.content + } + /// The length of the chunk, i.e. how many items are in it. /// /// It will always return 0 if it's a gap chunk.