Make all room_id's in events (not event content) optional
This commit is contained in:
parent
a10da82ec0
commit
78eae67fac
@ -13,7 +13,10 @@ ruma_event! {
|
||||
event_type: FullyRead,
|
||||
fields: {
|
||||
/// The unique identifier for the room associated with this event.
|
||||
pub room_id: RoomId,
|
||||
///
|
||||
/// `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.
|
||||
|
@ -14,7 +14,10 @@ ruma_event! {
|
||||
event_type: Receipt,
|
||||
fields: {
|
||||
/// The unique identifier for the room associated with this event.
|
||||
pub room_id: RoomId,
|
||||
///
|
||||
/// `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_type_alias: {
|
||||
/// The payload for `ReceiptEvent`.
|
||||
|
@ -10,7 +10,10 @@ ruma_event! {
|
||||
event_type: Typing,
|
||||
fields: {
|
||||
/// The unique identifier for the room associated with this event.
|
||||
pub room_id: RoomId,
|
||||
///
|
||||
/// `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 list of user IDs typing in this room, if any.
|
||||
|
Loading…
x
Reference in New Issue
Block a user