Refactor MatrixActions to something much easier to grok.

This commit is contained in:
Luke Barnard 2017-12-12 16:05:18 +00:00
parent 3e532e3722
commit 60d8ebb914
3 changed files with 52 additions and 85 deletions

View file

@ -42,7 +42,7 @@ class TagOrderStore extends Store {
__onDispatch(payload) {
switch (payload.action) {
// Initialise state after initial sync
case 'MatrixSync': {
case 'MatrixActions.sync': {
if (!(payload.prevState === 'PREPARED' && payload.state === 'SYNCING')) {
break;
}