Add server_name parameter to join_room_by_id_or_alias

This commit is contained in:
iinuwa 2020-04-06 10:28:55 -05:00 committed by GitHub
parent fe92c2940a
commit dc582758e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -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:

View File

@ -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<String>,
/// 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")]