Rename the key field of the SecretStorageDefaultKeyEventContent to key_id

This makes it clearer that the field does not contain a secret key of
any sort.
This commit is contained in:
Damir Jelić 2023-09-26 18:14:54 +02:00
parent 1b6240286f
commit 50d28aefbd
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,8 @@ Bug fixes:
Breaking changes: Breaking changes:
- Rename the `key` field in the `SecretStorageDefaultKeyEventContent` to
`key_id`.
- Make `in_reply_to` field of `Thread` optional - 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)) - 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` - Remove `AnswerSessionDescription` and `OfferSessionDescription` types, use `SessionDescription`

View File

@ -12,5 +12,6 @@ use crate::macros::EventContent;
#[ruma_event(type = "m.secret_storage.default_key", kind = GlobalAccountData)] #[ruma_event(type = "m.secret_storage.default_key", kind = GlobalAccountData)]
pub struct SecretStorageDefaultKeyEventContent { pub struct SecretStorageDefaultKeyEventContent {
/// The ID of the default key. /// The ID of the default key.
pub key: String, #[serde(rename = "key")]
pub key_id: String,
} }