mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-08 16:04:13 -04:00
This patch moves `LatestEventValue` into the `matrix_sdk_base::latest_event` module. If we want to store this value in `RoomInfo`, it must be in this crate. Because it's not allowed to `impl T` where `T` lives in a different crate, this patch changes the `impl LatestEventValue` to `struct LatestEventValueBuilder` + `impl LatestEventValueBuilder`. Luckily, all methods on `LatestEventValue` are only constructors, so the change is super straightforward.