element-portable/src/stores
Travis Ralston 5f760fbf4a Change the room list algo to eagerly delete and carefully insert
Previously it made some complicated assumptions about the contexts it was called in (it generally assumed it just had to shuffle rooms between tags and didn't really handle new rooms very well).

The algorithm now eagerly tries to drop rooms from tags and carefully inserts them. The actual insertion logic is mostly untouched: the only part changed is how it handles failure to insert into tag. It shouldn't be possible for this algorithm to completely skip a room unless the tag is empty, so we special case that.

There are several TODO comments to be addressed here. Namely, it doesn't handle manually ordered tags (favourites, custom, etc) and doesn't check if tags are even enabled. Changes in this area are waiting for https://github.com/matrix-org/matrix-react-sdk/pull/2686 to land to take advantage of monitoring the settings flag for tags.
2019-02-24 19:45:23 -07:00
..
ActiveWidgetStore.js Lint 2018-08-17 09:42:23 +01:00
CustomRoomTagStore.js guard custom tags with feature flag 2019-02-07 18:07:30 +00:00
FlairStore.js Return null instead of undefined on failure 2018-03-06 12:14:41 +00:00
GroupStore.js calculate badges for communities in TagOrderStore 2019-02-06 14:29:40 +00:00
LifecycleStore.js Rename login directory to auth 2019-01-21 17:45:55 -06:00
MessageComposerStore.js no point saving history at this point, maybe future supported 2018-07-17 09:27:11 +01:00
RoomListStore.js Change the room list algo to eagerly delete and carefully insert 2019-02-24 19:45:23 -07:00
RoomScrollStateStore.js Re-add doc on scroll state map structure 2017-09-08 13:27:14 +01:00
RoomViewStore.js Remove old user and room settings 2019-02-04 13:40:21 -07:00
SessionStore.js Remove redundant reset 2017-05-31 15:32:55 +01:00
TagOrderStore.js do more explicit check 2019-02-07 12:18:52 +00:00
WidgetEchoStore.js PR feedback 2018-07-16 13:18:10 +01:00