Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix favourites metaspace not updating (#8594)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored May 14, 2022
1 parent 11eca18 commit 4c1c12b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stores/spaces/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
};

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;
Expand Down

0 comments on commit 4c1c12b

Please sign in to comment.