mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 18:21:39 +01:00
remove options on dispose in Member
to ensure callback can't be called anymore, as we don't check that the member argument is the one currently in GroupCall._members.
This commit is contained in:
parent
400df6a4ff
commit
7936863934
@ -98,7 +98,7 @@ export class Member {
|
||||
constructor(
|
||||
public member: RoomMember,
|
||||
private callDeviceMembership: CallDeviceMembership,
|
||||
private readonly options: Options,
|
||||
private options: Options,
|
||||
updateMemberLog: ILogItem
|
||||
) {
|
||||
this._renewExpireTimeout(updateMemberLog);
|
||||
@ -402,6 +402,8 @@ export class Member {
|
||||
this.connection = undefined;
|
||||
this.expireTimeout?.dispose();
|
||||
this.expireTimeout = undefined;
|
||||
// ensure the emitUpdate callback can't be called anymore
|
||||
this.options = undefined as any as Options;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user