correct MSC3266 room_version and encryption response fields
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
8c323cf6e6
commit
82ebed457a
@ -83,7 +83,12 @@ pub mod msc3266 {
|
|||||||
pub room_type: Option<RoomType>,
|
pub room_type: Option<RoomType>,
|
||||||
|
|
||||||
/// Version of the room.
|
/// Version of the room.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(
|
||||||
|
skip_serializing_if = "Option::is_none",
|
||||||
|
rename = "im.nheko.summary.room_version",
|
||||||
|
alias = "im.nheko.summary.version",
|
||||||
|
alias = "room_version"
|
||||||
|
)]
|
||||||
pub room_version: Option<RoomVersionId>,
|
pub room_version: Option<RoomVersionId>,
|
||||||
|
|
||||||
/// The current membership of this user in the room.
|
/// The current membership of this user in the room.
|
||||||
@ -95,7 +100,11 @@ pub mod msc3266 {
|
|||||||
pub membership: Option<MembershipState>,
|
pub membership: Option<MembershipState>,
|
||||||
|
|
||||||
/// If the room is encrypted, the algorithm used for this room.
|
/// If the room is encrypted, the algorithm used for this room.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(
|
||||||
|
skip_serializing_if = "Option::is_none",
|
||||||
|
rename = "im.nheko.summary.encryption",
|
||||||
|
alias = "encryption"
|
||||||
|
)]
|
||||||
pub encryption: Option<EventEncryptionAlgorithm>,
|
pub encryption: Option<EventEncryptionAlgorithm>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user