Compare commits

...

2 Commits

Author SHA1 Message Date
Damir Jelić c99f665766 chore: Remove an unused import 2024-05-13 12:42:31 +02:00
Damir Jelić 8a975c8985 chore: Fix the formatting 2024-05-13 12:35:52 +02:00
+3 -2
View File
@@ -2175,7 +2175,7 @@ pub(crate) mod tests {
olm::{
BackedUpRoomKey, ExportedRoomKey, InboundGroupSession, OutboundGroupSession, VerifyJson,
},
store::{BackupDecryptionKey, Changes, CryptoStore, MemoryStore, RoomSettings},
store::{BackupDecryptionKey, Changes, CryptoStore, MemoryStore},
types::{
events::{
room::encrypted::{EncryptedToDeviceEvent, ToDeviceEncryptedEventContent},
@@ -4132,7 +4132,8 @@ pub(crate) mod tests {
let ciphertext = key_backup_data.session_data.ciphertext.encode();
let mac = key_backup_data.session_data.mac.encode();
// Prior to the fix for GHSA-9ggc-845v-gcgv, this would produce a `Mac(MacError)`
// Prior to the fix for GHSA-9ggc-845v-gcgv, this would produce a
// `Mac(MacError)`
backup_decryption_key
.decrypt_v1(&ephemeral, &mac, &ciphertext)
.expect("The backed up key should be decrypted successfully");