mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Minor code refactoring
parent
4dc98e3272
commit
2726fa6a67
|
@ -612,15 +612,16 @@ export class OpenViduService {
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
needSendNicknameSignal(): boolean {
|
needSendNicknameSignal(): boolean {
|
||||||
let oldNickname: string;
|
let oldNickname: string = "";
|
||||||
try {
|
try {
|
||||||
const connData = JSON.parse(this.cleanConnectionData(this.webcamSession.connection.data));
|
const connData = JSON.parse(this.cleanConnectionData(this.webcamSession.connection.data));
|
||||||
oldNickname = connData.clientData;
|
oldNickname = connData.clientData;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.log.e(error);
|
this.log.e(error);
|
||||||
}
|
} finally {
|
||||||
return oldNickname !== this.participantService.getMyNickname();
|
return oldNickname !== this.participantService.getMyNickname();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|
Loading…
Reference in New Issue