From 56ecd39f267de4fb770e9ecae2ca3f307ef0ee95 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 30 Sep 2022 17:46:57 +0200 Subject: [PATCH] don't assume joinedData is set here although not entirely sure why it wouldn't be --- src/matrix/calls/group/GroupCall.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/calls/group/GroupCall.ts b/src/matrix/calls/group/GroupCall.ts index 60099c03..ac41a772 100644 --- a/src/matrix/calls/group/GroupCall.ts +++ b/src/matrix/calls/group/GroupCall.ts @@ -324,7 +324,9 @@ export class GroupCall extends EventEmitter<{change: never}> { log.wrap("update own membership", log => { // TODO: should we check if new device is expired? if (this.hasJoined) { - this.joinedData!.logItem.refDetached(log); + if (this.joinedData) { + this.joinedData.logItem.refDetached(log); + } this._setupRenewMembershipTimeout(device, log); } if (this._state === GroupCallState.Joining) {