mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-03 13:37:56 -04:00
In preparation for threads we have realised that the `reactions`, `thread_root` and `in_reply_to` were only available on `Message` types, which doesn't play well with Stickers and Polls. This PR introduces a new `Aggregated` `TimelineItemContent` variant which holds the message `kind` (Message, Sticker, Poll) as well as well as any related aggregated data. it will help treat them all in a similar fashion as well as account for future changes. There are no functional changes, it's mostly about moving code around and the FFI interfaces haven't changed. Part of #4833.