Skip to content

Commit

Permalink
fix(crypto): Rename the device keys property for Olm messages
Browse files Browse the repository at this point in the history
Commit d41af39 implemented MSC4147, which puts the device keys into a
Olm message. It failed to adhere to the unstable prefix proposed in the
MSC:

> Until this MSC is accepted, the new property should be named
> org.matrix.msc4147.device_keys.

This patch fixes this.
  • Loading branch information
poljar committed Jul 1, 2024
1 parent 1de3d16 commit 53cdac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-crypto/src/olm/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl Session {
"keys": {
"ed25519": self.our_device_keys.ed25519_key().expect("Device doesn't have ed25519 key").to_base64(),
},
"device_keys": self.our_device_keys,
"org.matrix.msc4147.device_keys": self.our_device_keys,
"recipient": recipient_device.user_id(),
"recipient_keys": {
"ed25519": recipient_signing_key.to_base64(),
Expand Down

0 comments on commit 53cdac9

Please sign in to comment.