ov-components: rename participantId to participantName in ParticipantLeftEvent and update disconnect method

master
Carlos Santos 2025-03-07 13:52:43 +01:00
parent 272eb9002c
commit 288a585809
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
async disconnect() { async disconnect() {
const event: ParticipantLeftEvent = { const event: ParticipantLeftEvent = {
roomName: this.openviduService.getRoomName(), roomName: this.openviduService.getRoomName(),
participantId: this.participantService.getLocalParticipant()?.identity || '' participantName: this.participantService.getLocalParticipant()?.identity || ''
}; };
try { try {
await this.openviduService.disconnectRoom(); await this.openviduService.disconnectRoom();

View File

@ -18,7 +18,7 @@ import {
export interface ParticipantLeftEvent { export interface ParticipantLeftEvent {
roomName: string; roomName: string;
participantId: string; participantName: string;
} }
/** /**