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, emitChange,
mediaRepository: this.getOption("room").mediaRepository mediaRepository: this.getOption("room").mediaRepository
})), })),
(vm: CallMemberViewModel) => vm.onUpdate(), (param, vm) => vm?.onUpdate(),
) as BaseObservableMap<string, IStreamViewModel>; ) as BaseObservableMap<string, IStreamViewModel>;
this.memberViewModels = otherMemberViewModels this.memberViewModels = otherMemberViewModels
.join(ownMemberViewModelMap) .join(ownMemberViewModelMap)

View File

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