diff --git a/openvidu-components-angular/package-lock.json b/openvidu-components-angular/package-lock.json index 0566ee897..d351bb100 100644 --- a/openvidu-components-angular/package-lock.json +++ b/openvidu-components-angular/package-lock.json @@ -584,6 +584,7 @@ "integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", @@ -1000,18 +1001,6 @@ "win32" ] }, - "node_modules/@angular-devkit/build-angular/node_modules/@types/node": { - "version": "24.10.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", - "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "undici-types": "~7.16.0" - } - }, "node_modules/@angular-devkit/build-angular/node_modules/rollup": { "version": "4.52.3", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz", @@ -14810,6 +14799,7 @@ "integrity": "sha512-SL0JY3DaxylDuo/MecFeiC+7pedM0zia33zl0vcjgwcq1q1FWWF1To9EIauPbl8GbMCU0R2e0uJ8bZunhYKD2g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "cli-truncate": "^4.0.0", "colorette": "^2.0.20", @@ -21794,6 +21784,7 @@ "integrity": "sha512-QcQ72gh8a+7JO63TAx/6XZf/CWhgMzu5m0QirvPfGvptOusAxG12w2+aua1Jkjr7hzaWDnJ2n6JFeexMHI+Zjg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/bonjour": "^3.5.13", "@types/connect-history-api-fallback": "^1.5.4", diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts index a1ab82480..9c48b7d60 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts @@ -267,11 +267,12 @@ export class SessionComponent implements OnInit, OnDestroy { } protected subscribeToEncryptionErrors() { - // TODO: LiveKit does not provide the participant who has the encryption error yet. - // Waiting for this issue to be solved: https://github.com/livekit/client-sdk-js/issues/1722 - this.room.on(RoomEvent.EncryptionError, (error: Error, participant?: RemoteParticipant) => { - if (!participant) return; - this.participantService.setEncryptionError(participant?.sid, true); + this.room.on(RoomEvent.EncryptionError, (error: Error, participant?: Participant) => { + if (!participant) { + this.log.w('Encryption error received without participant info:', error); + return; + } + this.participantService.setEncryptionError(participant.sid, true); }); }