diff --git a/CHANGELOG.md b/CHANGELOG.md index 570cfb60..99bf3940 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # [unreleased] +Breaking changes: + +* Add `server_name` parameter to `r0::join::join_room_by_id_or_alias` + # 0.7.2 Bug fixes: 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 1dfd2f68..4def0344 100644 --- a/src/r0/membership/join_room_by_id_or_alias.rs +++ b/src/r0/membership/join_room_by_id_or_alias.rs @@ -1,4 +1,4 @@ -//! [POST /_matrix/client/r0/join/{roomIdOrAlias}](https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-join-roomidoralias) +//! [POST /_matrix/client/r0/join/{roomIdOrAlias}](https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-join-roomidoralias) use ruma_api::ruma_api; use ruma_identifiers::{RoomId, RoomIdOrAliasId}; @@ -19,6 +19,11 @@ ruma_api! { /// The room where the user should be invited. #[ruma_api(path)] pub room_id_or_alias: RoomIdOrAliasId, + /// 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, /// 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")]