mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-16 03:55:42 -04:00
base: Restrict visibility of RoomInfo#latest_event
This commit is contained in:
committed by
Jonas Platte
parent
68a5f70a85
commit
70421cff54
@@ -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"))]
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user