mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Add in some local echo support to make changes appear faster
This commit is contained in:
parent
7ff76b2500
commit
5c393cc2d0
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue