element-web/src/stores
Travis Ralston 49abfc1fb2 Ensure sublists are updated when rooms are removed from them
Fixes https://github.com/vector-im/riot-web/issues/14798 (part 2)

This is in two parts itself: The `RoomSublist` needs to break its references to the `RoomListStore`, so it now clones the room arrays. The `Algorithm` is the other part, which is slightly more complicated.

It turns out that we weren't handling splicing as a change in the `ImportanceAlgorithm`, therefore the `Algorithm` wasn't really feeling like it needed to change anything. Further, the `Algorithm` was using the wrong reference to where it should be dumping rooms (`this.cachedRooms` is a getter which returns a different object depending on conditions), so having fixed that we need to ensure that the filtered and sticky maps are also updated when we remove a room. Because we send the new tag through a Timeline update, we'll end up updating the tag later on and don't need to update the filter and sticky collections.
2020-07-30 15:06:04 -06:00
..
notifications Listen for our own membership changes on notification states 2020-07-30 14:33:38 -06:00
room-list Ensure sublists are updated when rooms are removed from them 2020-07-30 15:06:04 -06:00
ActiveWidgetStore.js Add comments to highlight where we'll need m.widget support 2020-04-09 15:14:07 -06:00
AsyncStore.ts Don't re-freeze AsyncStore's state all the time 2020-07-22 10:52:45 -06:00
AsyncStoreWithClient.ts Put back code 2020-07-30 19:46:27 +01:00
BreadcrumbsStore.ts Fix crash on logging in again after soft logout 2020-07-30 18:52:47 +01:00
CustomRoomTagStore.js Ensure CustomRoomTagStore doesn't fire useless updates 2020-07-27 17:18:01 -06:00
FlairStore.js Rip out the remainder of Bluebird 2019-11-18 10:03:05 +00:00
GroupStore.js Move dispatcher into a subdirectory 2020-05-13 21:07:50 -06:00
LifecycleStore.js Move dispatcher into a subdirectory 2020-05-13 21:07:50 -06:00
OwnProfileStore.ts Update profile information in User Menu 2020-06-23 21:01:50 -06:00
RightPanelStore.ts Replaced string actions with their corresponding types 2020-07-22 15:14:50 +05:30
RightPanelStorePhases.ts lint 2020-07-22 15:14:50 +05:30
RoomScrollStateStore.js Revert "Fix Filepanel scroll position state lost when room is changed" 2020-04-19 19:14:08 -06:00
RoomViewStore.js change message priority 2020-07-30 10:33:36 +02:00
SessionStore.js Move dispatcher into a subdirectory 2020-05-13 21:07:50 -06:00
SetupEncryptionStore.js Fix up merge to develop 2020-06-23 15:24:02 +01:00
TagOrderStore.js Move dispatcher into a subdirectory 2020-05-13 21:07:50 -06:00
ToastStore.ts Fix lint issues in new code 2020-07-20 20:43:55 +01:00
TypingStore.js Fix MatrixClientPeg imports 2019-12-22 21:15:54 -07:00
WidgetEchoStore.js Support m.jitsi-typed widgets as Jitsi widgets 2020-04-09 15:11:57 -06:00