Add in some local echo support to make changes appear faster

pull/21833/head
Travis Ralston 2021-01-18 20:29:51 -07:00
parent 7ff76b2500
commit 5c393cc2d0
1 changed files with 2 additions and 1 deletions

View File

@ -444,7 +444,8 @@ export class WidgetLayoutStore extends ReadyWatchingStore {
SettingsStore.setValue("Widgets.layout", room.roomId, SettingLevel.ROOM_ACCOUNT, {
overrides: layoutEv?.getId(),
widgets: newLayout,
});
}).catch(() => this.recalculateRoom(room));
this.recalculateRoom(room); // call to try local echo on changes (the catch above undoes any errors)
}
}