ov-components: Improve error handling for encryption errors in RoomEvent

master
Carlos Santos 2025-11-12 11:50:55 +01:00
parent c50b4a6d2f
commit ba80504c9e
2 changed files with 9 additions and 17 deletions

View File

@ -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",

View File

@ -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);
});
}