events: Allow missing fields in m.room.third_party_invite under unstable-synapse-quirks

This commit is contained in:
Jonas Platte 2020-11-23 19:32:28 +01:00
parent 634c3f1ee5
commit 60d12470c9
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -17,12 +17,15 @@ pub type ThirdPartyInviteEvent = StateEvent<ThirdPartyInviteEventContent>;
#[ruma_event(type = "m.room.third_party_invite")]
pub struct ThirdPartyInviteEventContent {
/// A user-readable string which represents the user who has been invited.
#[cfg_attr(feature = "unstable-synapse-quirks", serde(default))]
pub display_name: String,
/// A URL which can be fetched to validate whether the key has been revoked.
#[cfg_attr(feature = "unstable-synapse-quirks", serde(default))]
pub key_validity_url: String,
/// A Base64-encoded Ed25519 key with which the token must be signed.
#[cfg_attr(feature = "unstable-synapse-quirks", serde(default))]
pub public_key: String,
/// Keys with which the token may be signed.