Fix favourites metaspace not updating (#8594)

t3chguy/dedup-icons-17oct
Šimon Brandner 2022-05-14 13:45:15 +02:00 committed by GitHub
parent 11eca18450
commit 4c1c12bbc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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;