@@ -76,10 +76,10 @@ use crate::{
76
76
Account , ExportedRoomKey , InboundGroupSession , PrivateCrossSigningIdentity , SenderData ,
77
77
Session , StaticAccountData ,
78
78
} ,
79
+ store:: types:: RoomKeyWithheldEntry ,
79
80
types:: {
80
- events:: room_key_withheld:: { MegolmV1AesSha2WithheldContent , RoomKeyWithheldEntry } ,
81
- BackupSecrets , CrossSigningSecrets , MegolmBackupV1Curve25519AesSha2Secrets , RoomKeyExport ,
82
- SecretsBundle ,
81
+ events:: room_key_withheld:: MegolmV1AesSha2WithheldContent , BackupSecrets ,
82
+ CrossSigningSecrets , MegolmBackupV1Curve25519AesSha2Secrets , RoomKeyExport , SecretsBundle ,
83
83
} ,
84
84
verification:: VerificationMachine ,
85
85
CrossSigningStatus , OwnUserIdentityData , RoomKeyImportResult ,
@@ -1695,7 +1695,7 @@ impl Store {
1695
1695
{
1696
1696
changes. withheld_session_info . entry ( c. room_id . to_owned ( ) ) . or_default ( ) . insert (
1697
1697
c. session_id . to_owned ( ) ,
1698
- RoomKeyWithheldEntry :: Bundle {
1698
+ RoomKeyWithheldEntry {
1699
1699
sender : bundle_info. sender_user . clone ( ) ,
1700
1700
content : withheld. to_owned ( ) ,
1701
1701
} ,
@@ -1753,13 +1753,11 @@ mod tests {
1753
1753
use crate :: {
1754
1754
machine:: test_helpers:: get_machine_pair,
1755
1755
olm:: { InboundGroupSession , SenderData } ,
1756
- store:: types:: { DehydratedDeviceKey , StoredRoomKeyBundleData } ,
1756
+ store:: types:: { DehydratedDeviceKey , RoomKeyWithheldEntry , StoredRoomKeyBundleData } ,
1757
1757
types:: {
1758
1758
events:: {
1759
1759
room_key_bundle:: RoomKeyBundleContent ,
1760
- room_key_withheld:: {
1761
- MegolmV1AesSha2WithheldContent , RoomKeyWithheldContent , RoomKeyWithheldEntry ,
1762
- } ,
1760
+ room_key_withheld:: { MegolmV1AesSha2WithheldContent , RoomKeyWithheldContent } ,
1763
1761
} ,
1764
1762
EventEncryptionAlgorithm ,
1765
1763
} ,
@@ -2082,7 +2080,7 @@ mod tests {
2082
2080
2083
2081
assert_matches ! (
2084
2082
bob. store( ) . get_withheld_info( room_id, sessions[ 1 ] . session_id( ) ) . await . unwrap( ) ,
2085
- Some ( RoomKeyWithheldEntry :: Bundle {
2083
+ Some ( RoomKeyWithheldEntry {
2086
2084
content: RoomKeyWithheldContent :: MegolmV1AesSha2 (
2087
2085
MegolmV1AesSha2WithheldContent :: Unauthorised ( _)
2088
2086
) ,
0 commit comments