mirror of
https://github.com/element-hq/element-web
synced 2024-10-27 13:16:02 +03:00
223ee0dbdb
When a new room is added there's a fairly good chance that the other events being dispatched will happen in the middle of (for example) the room list being re-sorted. This commit wraps the entire handleRoomUpdate() function for the underlying algorithms in a lock so that if we're unlucky enough to get an update while we're sorting (as the ImportanceAlgorithm splices out what it is sorting) we won't scream about invalid index errors. |
||
---|---|---|
.. | ||
room-list | ||
ActiveWidgetStore.js | ||
AsyncStore.ts | ||
AsyncStoreWithClient.ts | ||
BreadcrumbsStore.ts | ||
CustomRoomTagStore.js | ||
FlairStore.js | ||
GroupStore.js | ||
LifecycleStore.js | ||
OwnProfileStore.ts | ||
RightPanelStore.js | ||
RightPanelStorePhases.js | ||
RoomListStore.js | ||
RoomScrollStateStore.js | ||
RoomViewStore.js | ||
SessionStore.js | ||
SetupEncryptionStore.js | ||
TagOrderStore.js | ||
ToastStore.ts | ||
TypingStore.js | ||
WidgetEchoStore.js |