@@ -384,9 +384,12 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
384384 this . emit ( RoomEvent . ParticipantEncryptionStatusChanged , enabled , participant ) ;
385385 } ,
386386 ) ;
387- this . e2eeManager . on ( EncryptionEvent . EncryptionError , ( error ) =>
388- this . emit ( RoomEvent . EncryptionError , error ) ,
389- ) ;
387+ this . e2eeManager . on ( EncryptionEvent . EncryptionError , ( error , participantIdentity ) => {
388+ const participant = participantIdentity
389+ ? this . getParticipantByIdentity ( participantIdentity )
390+ : undefined ;
391+ this . emit ( RoomEvent . EncryptionError , error , participant ) ;
392+ } ) ;
390393 this . e2eeManager ?. setup ( this ) ;
391394 }
392395 }
@@ -2698,7 +2701,7 @@ export type RoomEventCallbacks = {
26982701 signalConnected : ( ) => void ;
26992702 recordingStatusChanged : ( recording : boolean ) => void ;
27002703 participantEncryptionStatusChanged : ( encrypted : boolean , participant ?: Participant ) => void ;
2701- encryptionError : ( error : Error ) => void ;
2704+ encryptionError : ( error : Error , participant ?: Participant ) => void ;
27022705 dcBufferStatusChanged : ( isLow : boolean , kind : DataPacket_Kind ) => void ;
27032706 activeDeviceChanged : ( kind : MediaDeviceKind , deviceId : string ) => void ;
27042707 chatMessage : ( message : ChatMessage , participant ?: RemoteParticipant | LocalParticipant ) => void ;
0 commit comments