Skip to content

Commit

Permalink
Clone opts.backingStore
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Paul committed Aug 7, 2020
1 parent 356cb20 commit e10ef13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/intent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e10ef13

Please sign in to comment.