@@ -45,7 +45,7 @@ use crate::{
45
45
OutboundGroupSession , PickledAccount , PickledInboundGroupSession , PickledSession ,
46
46
PrivateCrossSigningIdentity , SenderDataType , StaticAccountData ,
47
47
} ,
48
- types:: events:: room_key_withheld:: RoomKeyWithheldEvent ,
48
+ types:: events:: room_key_withheld:: RoomKeyWithheldEntry ,
49
49
} ;
50
50
51
51
fn encode_key_info ( info : & SecretInfo ) -> String {
@@ -97,7 +97,7 @@ pub struct MemoryStore {
97
97
identities : StdRwLock < HashMap < OwnedUserId , String > > ,
98
98
outgoing_key_requests : StdRwLock < HashMap < OwnedTransactionId , GossipRequest > > ,
99
99
key_requests_by_info : StdRwLock < HashMap < String , OwnedTransactionId > > ,
100
- direct_withheld_info : StdRwLock < HashMap < OwnedRoomId , HashMap < String , RoomKeyWithheldEvent > > > ,
100
+ direct_withheld_info : StdRwLock < HashMap < OwnedRoomId , HashMap < String , RoomKeyWithheldEntry > > > ,
101
101
custom_values : StdRwLock < HashMap < String , Vec < u8 > > > ,
102
102
leases : StdRwLock < HashMap < String , ( String , Instant ) > > ,
103
103
secret_inbox : StdRwLock < HashMap < String , Vec < GossippedSecret > > > ,
@@ -420,7 +420,7 @@ impl CryptoStore for MemoryStore {
420
420
& self ,
421
421
room_id : & RoomId ,
422
422
session_id : & str ,
423
- ) -> Result < Option < RoomKeyWithheldEvent > > {
423
+ ) -> Result < Option < RoomKeyWithheldEntry > > {
424
424
Ok ( self
425
425
. direct_withheld_info
426
426
. read ( )
@@ -1276,7 +1276,7 @@ mod integration_tests {
1276
1276
} ,
1277
1277
CryptoStore ,
1278
1278
} ,
1279
- types:: events:: room_key_withheld:: RoomKeyWithheldEvent ,
1279
+ types:: events:: room_key_withheld:: RoomKeyWithheldEntry ,
1280
1280
Account , DeviceData , GossipRequest , GossippedSecret , SecretInfo , Session , UserIdentityData ,
1281
1281
} ;
1282
1282
@@ -1372,7 +1372,7 @@ mod integration_tests {
1372
1372
& self ,
1373
1373
room_id : & RoomId ,
1374
1374
session_id : & str ,
1375
- ) -> Result < Option < RoomKeyWithheldEvent > , Self :: Error > {
1375
+ ) -> Result < Option < RoomKeyWithheldEntry > , Self :: Error > {
1376
1376
self . 0 . get_withheld_info ( room_id, session_id) . await
1377
1377
}
1378
1378
0 commit comments