From 4c1c12bbc4d2df28e8f979fda80d1c2a8b02f6a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sat, 14 May 2022 13:45:15 +0200 Subject: [PATCH] Fix favourites metaspace not updating (#8594) --- src/stores/spaces/SpaceStore.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/stores/spaces/SpaceStore.ts b/src/stores/spaces/SpaceStore.ts index 482878542b..4f455faee5 100644 --- a/src/stores/spaces/SpaceStore.ts +++ b/src/stores/spaces/SpaceStore.ts @@ -960,9 +960,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { }; private onRoomAccountData = (ev: MatrixEvent, room: Room, lastEv?: MatrixEvent) => { - if (!room.isSpaceRoom()) return; - - if (ev.getType() === EventType.SpaceOrder) { + if (room.isSpaceRoom() && ev.getType() === EventType.SpaceOrder) { this.spaceOrderLocalEchoMap.delete(room.roomId); // clear any local echo const order = ev.getContent()?.order; const lastOrder = lastEv?.getContent()?.order;