Skip to content

Commit

Permalink
fixup! fix(crypto): Rename the device keys property for Olm messages
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Jul 1, 2024
1 parent 53cdac9 commit eac2076
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/matrix-sdk-crypto/src/olm/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ mod tests {

// Also ensure that the encrypted payload has the device keys.
let plaintext: Value = serde_json::from_str(&bob_session_result.plaintext).unwrap();
assert_eq!(plaintext["device_keys"]["user_id"].as_str(), Some("@alice:localhost"));
assert_eq!(
plaintext["org.matrix.msc4147.device_keys"]["user_id"].as_str(),
Some("@alice:localhost")
);
}
}

0 comments on commit eac2076

Please sign in to comment.