don't assume joinedData is set here

although not entirely sure why it wouldn't be
This commit is contained in:
Bruno Windels 2022-09-30 17:46:57 +02:00
parent 1dddabc038
commit 56ecd39f26

View File

@ -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) {