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;