mirror of https://github.com/OpenVidu/openvidu.git
ov-components: rename participantId to participantName in ParticipantLeftEvent and update disconnect method
parent
272eb9002c
commit
288a585809
|
@ -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();
|
||||||
|
|
|
@ -18,7 +18,7 @@ import {
|
||||||
|
|
||||||
export interface ParticipantLeftEvent {
|
export interface ParticipantLeftEvent {
|
||||||
roomName: string;
|
roomName: string;
|
||||||
participantId: string;
|
participantName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue