From 82ebed457a7324bb6e589d6e0e8c8f3954f40a36 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 20 Nov 2024 16:21:58 -0500 Subject: [PATCH] correct MSC3266 room_version and encryption response fields Signed-off-by: strawberry --- crates/ruma-client-api/src/room/get_summary.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/crates/ruma-client-api/src/room/get_summary.rs b/crates/ruma-client-api/src/room/get_summary.rs index e40e3254..113d23cc 100644 --- a/crates/ruma-client-api/src/room/get_summary.rs +++ b/crates/ruma-client-api/src/room/get_summary.rs @@ -83,7 +83,12 @@ pub mod msc3266 { pub room_type: Option, /// 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, /// The current membership of this user in the room. @@ -95,7 +100,11 @@ pub mod msc3266 { pub membership: Option, /// 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, }