mirror of https://github.com/vector-im/riot-web
Add in some local echo support to make changes appear faster
parent
7ff76b2500
commit
5c393cc2d0
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue