From 23dbea1f56144062d218dc722a31ac9ec4bd1bb3 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Fri, 17 Apr 2020 11:32:37 +0200 Subject: [PATCH] Make join_room_by_id_or_alias deserialization work --- src/r0/membership/join_room_by_id_or_alias.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r0/membership/join_room_by_id_or_alias.rs b/src/r0/membership/join_room_by_id_or_alias.rs index 4def0344..287ae7c9 100644 --- a/src/r0/membership/join_room_by_id_or_alias.rs +++ b/src/r0/membership/join_room_by_id_or_alias.rs @@ -22,8 +22,8 @@ ruma_api! { /// The servers to attempt to join the room through. One of the servers /// must be participating in the room. #[ruma_api(query)] - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub server_name: Vec, + #[serde(default)] + pub server_name: String, // TODO: Vec once it is supported (#146, ruma-api#48) /// The signature of a `m.third_party_invite` token to prove that this user owns a third /// party identity which has been invited to the room. #[serde(skip_serializing_if = "Option::is_none")]