From 3342deed55e61354c06fe74272e190a5f8a5dca9 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 1 May 2021 21:55:42 +0200 Subject: [PATCH] client-api: Change str to UserId in ThirdPartySigned --- ruma-client-api/src/r0/membership.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruma-client-api/src/r0/membership.rs b/ruma-client-api/src/r0/membership.rs index 7d0c2e23..81c3501b 100644 --- a/ruma-client-api/src/r0/membership.rs +++ b/ruma-client-api/src/r0/membership.rs @@ -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,