correct MSC3266 room_version and encryption response fields

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-11-20 16:21:58 -05:00
parent 8c323cf6e6
commit 82ebed457a
No known key found for this signature in database

View File

@ -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>,
} }