diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 8caaa949..c9af33c0 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -9,6 +9,8 @@ Bug fixes: Breaking changes: +- Rename the `key` field in the `SecretStorageDefaultKeyEventContent` to + `key_id`. - Make `in_reply_to` field of `Thread` optional - It was wrong to be mandatory, spec was unclear (clarified [here](https://github.com/matrix-org/matrix-spec/pull/1439)) - Remove `AnswerSessionDescription` and `OfferSessionDescription` types, use `SessionDescription` diff --git a/crates/ruma-events/src/secret_storage/default_key.rs b/crates/ruma-events/src/secret_storage/default_key.rs index d9096514..5d0c08e0 100644 --- a/crates/ruma-events/src/secret_storage/default_key.rs +++ b/crates/ruma-events/src/secret_storage/default_key.rs @@ -12,5 +12,6 @@ use crate::macros::EventContent; #[ruma_event(type = "m.secret_storage.default_key", kind = GlobalAccountData)] pub struct SecretStorageDefaultKeyEventContent { /// The ID of the default key. - pub key: String, + #[serde(rename = "key")] + pub key_id: String, }