base: Restrict visibility of RoomInfo#latest_event

This commit is contained in:
Jonas Platte
2023-07-13 15:47:43 +02:00
committed by Jonas Platte
parent 68a5f70a85
commit 70421cff54
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
//! Utilities for working with events to decide whether they are suitable for
//! use as a [crate::RoomInfo::latest_event].
//! use as a [crate::Room::latest_event].
#![cfg(all(feature = "e2e-encryption", feature = "experimental-sliding-sync"))]

View File

@@ -695,7 +695,7 @@ pub struct RoomInfo {
encryption_state_synced: bool,
/// The last event send by sliding sync
#[cfg(feature = "experimental-sliding-sync")]
pub latest_event: Option<SyncTimelineEvent>,
pub(crate) latest_event: Option<SyncTimelineEvent>,
/// Base room info which holds some basic event contents important for the
/// room state.
pub(crate) base_info: BaseRoomInfo,