diff --git a/matrix_sdk_crypto/src/olm/group_sessions/mod.rs b/matrix_sdk_crypto/src/olm/group_sessions/mod.rs index a8b2137e..b0e69599 100644 --- a/matrix_sdk_crypto/src/olm/group_sessions/mod.rs +++ b/matrix_sdk_crypto/src/olm/group_sessions/mod.rs @@ -34,14 +34,14 @@ pub struct GroupSessionKey(pub String); /// The exported version of an private session key of a group session. /// Can be used to create a new inbound group session. -#[derive(Clone, Debug, Serialize, Deserialize, Zeroize)] +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Zeroize)] #[zeroize(drop)] pub struct ExportedGroupSessionKey(pub String); /// An exported version of a `InboundGroupSession` /// /// This can be used to share the `InboundGroupSession` in an exported file. -#[derive(Clone, Debug, Deserialize, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)] pub struct ExportedRoomKey { /// The encryption algorithm that the session uses. pub algorithm: EventEncryptionAlgorithm,