diff --git a/crates/matrix-sdk-ui/src/timeline/inner/mod.rs b/crates/matrix-sdk-ui/src/timeline/inner/mod.rs index fc7e283e1..fbdf560c1 100644 --- a/crates/matrix-sdk-ui/src/timeline/inner/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/inner/mod.rs @@ -949,7 +949,7 @@ impl TimelineInner { &self.room_data_provider } - /// Get the current fully-read event. + /// Get the current fully-read event, from storage. pub(super) async fn fully_read_event(&self) -> Option { match self.room().account_data_static().await { Ok(Some(fully_read)) => match fully_read.deserialize() { @@ -967,7 +967,7 @@ impl TimelineInner { } } - /// Load the current fully-read event in this inner timeline. + /// Load the current fully-read event in this inner timeline from storage. pub(super) async fn load_fully_read_event(&self) { if let Some(fully_read) = self.fully_read_event().await { self.set_fully_read_event(fully_read.content.event_id).await; diff --git a/crates/matrix-sdk/src/room/mod.rs b/crates/matrix-sdk/src/room/mod.rs index 3bc10c703..509045cc0 100644 --- a/crates/matrix-sdk/src/room/mod.rs +++ b/crates/matrix-sdk/src/room/mod.rs @@ -818,7 +818,7 @@ impl Room { .collect::>()) } - /// Get account data in this room. + /// Read account data in this room, from storage. pub async fn account_data( &self, data_type: RoomAccountDataEventType, @@ -830,7 +830,7 @@ impl Room { .map_err(Into::into) } - /// Get account data of statically-known type in this room. + /// Get account data of a statically-known type in this room, from storage. /// /// # Examples ///