comment: make it clear when some account data comes from storage

This commit is contained in:
Benjamin Bouvier
2024-01-22 16:40:39 +01:00
parent 1085b85dfc
commit 5117325ef4
2 changed files with 4 additions and 4 deletions
@@ -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<FullyReadEvent> {
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;
+2 -2
View File
@@ -818,7 +818,7 @@ impl Room {
.collect::<FuturesUnordered<_>>())
}
/// 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
///