client-api: Change str to UserId in ThirdPartySigned

This commit is contained in:
Jonas Platte 2021-05-01 21:55:42 +02:00
parent 196da5b01d
commit 3342deed55
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -15,7 +15,7 @@ pub mod unban_user;
use std::collections::BTreeMap;
use ruma_common::thirdparty::Medium;
use ruma_identifiers::{ServerNameBox, ServerSigningKeyId};
use ruma_identifiers::{ServerNameBox, ServerSigningKeyId, UserId};
use ruma_serde::Outgoing;
use serde::Serialize;
@ -24,10 +24,10 @@ use serde::Serialize;
#[derive(Clone, Debug, Outgoing, Serialize)]
pub struct ThirdPartySigned<'a> {
/// The Matrix ID of the user who issued the invite.
pub sender: &'a str,
pub sender: &'a UserId,
/// The Matrix ID of the invitee.
pub mxid: &'a str,
pub mxid: &'a UserId,
/// The state key of the `m.third_party_invite` event.
pub token: &'a str,