Add in some local echo support to make changes appear faster

This commit is contained in:
Travis Ralston 2021-01-18 20:29:51 -07:00
parent 7ff76b2500
commit 5c393cc2d0

View file

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