@@ -63,7 +63,7 @@ use crate::{
6363 identities:: { user:: UserIdentities , Device , IdentityManager , UserDevices } ,
6464 olm:: {
6565 Account , CrossSigningStatus , EncryptionSettings , IdentityKeys , InboundGroupSession ,
66- OlmDecryptionInfo , PrivateCrossSigningIdentity , SessionType , StaticAccountData ,
66+ OlmDecryptionInfo , PrivateCrossSigningIdentity , SenderData , SessionType , StaticAccountData ,
6767 } ,
6868 requests:: { IncomingResponse , OutgoingRequest , UploadSigningKeysRequest } ,
6969 session_manager:: { GroupSessionManager , SessionManager } ,
@@ -806,11 +806,14 @@ impl OlmMachine {
806806 event : & DecryptedRoomKeyEvent ,
807807 content : & MegolmV1AesSha2Content ,
808808 ) -> OlmResult < Option < InboundGroupSession > > {
809+ let sender_data = SenderData :: unknown ( ) ;
810+
809811 let session = InboundGroupSession :: new (
810812 sender_key,
811813 event. keys . ed25519 ,
812814 & content. room_id ,
813815 & content. session_key ,
816+ sender_data,
814817 event. content . algorithm ( ) ,
815818 None ,
816819 ) ;
@@ -2263,7 +2266,8 @@ pub(crate) mod tests {
22632266 error:: { EventError , SetRoomSettingsError } ,
22642267 machine:: { EncryptionSyncChanges , OlmMachine } ,
22652268 olm:: {
2266- BackedUpRoomKey , ExportedRoomKey , InboundGroupSession , OutboundGroupSession , VerifyJson ,
2269+ BackedUpRoomKey , ExportedRoomKey , InboundGroupSession , OutboundGroupSession ,
2270+ SenderData , VerifyJson ,
22672271 } ,
22682272 store:: { BackupDecryptionKey , Changes , CryptoStore , MemoryStore , RoomSettings } ,
22692273 types:: {
@@ -3556,6 +3560,7 @@ pub(crate) mod tests {
35563560 Ed25519PublicKey :: from_base64 ( "loz5i40dP+azDtWvsD0L/xpnCjNkmrcvtXVXzCHX8Vw" ) . unwrap ( ) ,
35573561 fake_room_id,
35583562 & olm,
3563+ SenderData :: unknown ( ) ,
35593564 EventEncryptionAlgorithm :: MegolmV1AesSha2 ,
35603565 None ,
35613566 )
@@ -3573,6 +3578,7 @@ pub(crate) mod tests {
35733578 Ed25519PublicKey :: from_base64 ( "48f3WQAMGwYLBg5M5qUhqnEVA8yeibjZpPsShoWMFT8" ) . unwrap ( ) ,
35743579 fake_room_id,
35753580 & olm,
3581+ SenderData :: unknown ( ) ,
35763582 EventEncryptionAlgorithm :: MegolmV1AesSha2 ,
35773583 None ,
35783584 )
0 commit comments