Simplifying if condition
This commit is contained in:
parent
30811e7702
commit
fd88399938
@ -261,7 +261,7 @@ export class VideoPeer extends Peer {
|
|||||||
this.closing = true;
|
this.closing = true;
|
||||||
this.onBlockSubscribe.unsubscribe();
|
this.onBlockSubscribe.unsubscribe();
|
||||||
this.onUnBlockSubscribe.unsubscribe();
|
this.onUnBlockSubscribe.unsubscribe();
|
||||||
if (this.newMessageSubscribtion) this.newMessageSubscribtion.unsubscribe();
|
this.newMessageSubscribtion?.unsubscribe();
|
||||||
chatMessagesStore.addOutcomingUser(this.userId);
|
chatMessagesStore.addOutcomingUser(this.userId);
|
||||||
if (this.localStreamStoreSubscribe) this.localStreamStoreSubscribe();
|
if (this.localStreamStoreSubscribe) this.localStreamStoreSubscribe();
|
||||||
if (this.obtainedMediaConstraintStoreSubscribe) this.obtainedMediaConstraintStoreSubscribe();
|
if (this.obtainedMediaConstraintStoreSubscribe) this.obtainedMediaConstraintStoreSubscribe();
|
||||||
|
Loading…
Reference in New Issue
Block a user