From e10ef1336fa58cbf20268dc52e75ef36371f1d5f Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Fri, 7 Aug 2020 21:18:23 +0200 Subject: [PATCH] Clone opts.backingStore --- src/components/intent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/intent.ts b/src/components/intent.ts index afa58db2..db5ca4b2 100644 --- a/src/components/intent.ts +++ b/src/components/intent.ts @@ -174,7 +174,7 @@ export class Intent { } this.opts = { ...opts, - backingStore: opts.backingStore || { + backingStore: opts.backingStore ? { ...opts.backingStore } : { getMembership: (roomId: string, userId: string) => { if (userId !== this.client.credentials.userId) { return null;