27 lines
876 B
Rust
27 lines
876 B
Rust
//! Types for the *m.fully_read* event.
|
|
|
|
use ruma_events_macros::ruma_event;
|
|
use ruma_identifiers::{EventId, RoomId};
|
|
|
|
ruma_event! {
|
|
/// The current location of the user's read marker in a room.
|
|
///
|
|
/// This event appears in the user's room account data for the room the marker is applicable
|
|
/// for.
|
|
FullyReadEvent {
|
|
kind: Event,
|
|
event_type: "m.fully_read",
|
|
fields: {
|
|
/// The unique identifier for the room associated with this event.
|
|
///
|
|
/// `None` if the room is known through other means (such as this even being part of an
|
|
/// event list scoped to a room in a `/sync` response)
|
|
pub room_id: Option<RoomId>,
|
|
},
|
|
content: {
|
|
/// The event the user's read marker is located at in the room.
|
|
pub event_id: EventId,
|
|
},
|
|
}
|
|
}
|