fix mixing up params, causing us to call onUpdate on params rather than vm

This commit is contained in:
Bruno Windels 2023-01-20 16:50:07 +01:00
parent 920fedae5e
commit b2feaf2b4e
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export class CallViewModel extends ErrorReportViewModel<SegmentType, Options<Seg
emitChange,
mediaRepository: this.getOption("room").mediaRepository
})),
(vm: CallMemberViewModel) => vm.onUpdate(),
(param, vm) => vm?.onUpdate(),
) as BaseObservableMap<string, IStreamViewModel>;
this.memberViewModels = otherMemberViewModels
.join(ownMemberViewModelMap)

View File

@ -126,7 +126,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
member.dispose();
this._members.remove(memberKey);
} else {
this._members.update(memberKey, member);
this._members.update(memberKey);
}
},
encryptDeviceMessage: (userId: string, deviceId: string, message: SignallingMessage<MGroupCallBase>, log) => {