From 1cd6540476dfa80b9b6e53d7ed83213d4079fe64 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 17 Jan 2023 14:32:02 +0530 Subject: [PATCH] Don't use getter here --- src/matrix/calls/group/GroupCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/calls/group/GroupCall.ts b/src/matrix/calls/group/GroupCall.ts index f3f37a2b..cda5a40f 100644 --- a/src/matrix/calls/group/GroupCall.ts +++ b/src/matrix/calls/group/GroupCall.ts @@ -200,7 +200,7 @@ export class GroupCall extends EventEmitter<{change: never}> { if ((this._state === GroupCallState.Joining || this._state === GroupCallState.Joined) && this.joinedData) { const oldMedia = this.joinedData.localMedia; this.joinedData.localMedia = localMedia; - this.localPreviewMedia?.dispose(); + this.joinedData.localPreviewMedia?.dispose(); this.joinedData.localPreviewMedia = localMedia.asPreview(); // reflect the fact we gained or lost local tracks in the local mute settings // and update the track info so PeerCall can use it to send up to date metadata,