diff --git a/crates/matrix-sdk/src/event_cache/caches/thread/mod.rs b/crates/matrix-sdk/src/event_cache/caches/thread/mod.rs index 06f7ed559..f2837458e 100644 --- a/crates/matrix-sdk/src/event_cache/caches/thread/mod.rs +++ b/crates/matrix-sdk/src/event_cache/caches/thread/mod.rs @@ -54,7 +54,7 @@ pub struct ThreadEventCache { inner: Arc, } -/// The (non-cloneable) details of the `RoomEventCache`. +/// The (non-cloneable) details of the `ThreadEventCache`. struct ThreadEventCacheInner { /// The room ID. room_id: OwnedRoomId, @@ -71,7 +71,7 @@ struct ThreadEventCacheInner { /// A notifier that we received a new pagination token. pagination_batch_token_notifier: Notify, - /// Update sender for this room. + /// Update sender for this thread. update_sender: ThreadEventCacheUpdateSender, } diff --git a/crates/matrix-sdk/src/event_cache/caches/thread/state.rs b/crates/matrix-sdk/src/event_cache/caches/thread/state.rs index a77ca7d67..bdb7e7fc9 100644 --- a/crates/matrix-sdk/src/event_cache/caches/thread/state.rs +++ b/crates/matrix-sdk/src/event_cache/caches/thread/state.rs @@ -75,8 +75,8 @@ pub struct ThreadEventCacheState { /// A clone of [`super::ThreadEventCacheInner::update_sender`]. /// - /// This is used only by the [`ThreadEventCacheStateLock::read`] and - /// [`ThreadEventCacheStateLock::write`] when the state must be reset. + /// This is used only by the [`LockedThreadEventCacheState::read`] and + /// [`LockedThreadEventCacheState::write`] when the state must be reset. update_sender: ThreadEventCacheUpdateSender, /// A sender for the globally observable linked chunk updates that happened