From fe5794a4bcfaee0b8bdbaa348391464085cdb47e Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:26:02 +0100 Subject: [PATCH] don't clear options as error boundary may fire after dispose --- src/matrix/calls/group/Member.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/calls/group/Member.ts b/src/matrix/calls/group/Member.ts index db5482ee..5d67bafe 100644 --- a/src/matrix/calls/group/Member.ts +++ b/src/matrix/calls/group/Member.ts @@ -457,7 +457,7 @@ export class Member { this.expireTimeout?.dispose(); this.expireTimeout = undefined; // ensure the emitUpdate callback can't be called anymore - this.options = undefined as any as Options; + this.options.emitUpdate = () => {}; } }