@@ -17,14 +17,14 @@ limitations under the License.
1717
1818import Analytics from '../Analytics' ;
1919import { asyncAction } from './actionCreators' ;
20- import TagOrderStore from '../stores/TagOrderStore ' ;
20+ import GroupFilterOrderStore from '../stores/GroupFilterOrderStore ' ;
2121import { AsyncActionPayload } from "../dispatcher/payloads" ;
2222import { MatrixClient } from "matrix-js-sdk/src/client" ;
2323
2424export default class TagOrderActions {
2525 /**
2626 * Creates an action thunk that will do an asynchronous request to
27- * move a tag in TagOrderStore to destinationIx.
27+ * move a tag in GroupFilterOrderStore to destinationIx.
2828 *
2929 * @param {MatrixClient } matrixClient the matrix client to set the
3030 * account data on.
@@ -36,8 +36,8 @@ export default class TagOrderActions {
3636 */
3737 public static moveTag ( matrixClient : MatrixClient , tag : string , destinationIx : number ) : AsyncActionPayload {
3838 // Only commit tags if the state is ready, i.e. not null
39- let tags = TagOrderStore . getOrderedTags ( ) ;
40- let removedTags = TagOrderStore . getRemovedTagsAccountData ( ) || [ ] ;
39+ let tags = GroupFilterOrderStore . getOrderedTags ( ) ;
40+ let removedTags = GroupFilterOrderStore . getRemovedTagsAccountData ( ) || [ ] ;
4141 if ( ! tags ) {
4242 return ;
4343 }
@@ -47,7 +47,7 @@ export default class TagOrderActions {
4747
4848 removedTags = removedTags . filter ( ( t ) => t !== tag ) ;
4949
50- const storeId = TagOrderStore . getStoreId ( ) ;
50+ const storeId = GroupFilterOrderStore . getStoreId ( ) ;
5151
5252 return asyncAction ( 'TagOrderActions.moveTag' , ( ) => {
5353 Analytics . trackEvent ( 'TagOrderActions' , 'commitTagOrdering' ) ;
@@ -83,8 +83,8 @@ export default class TagOrderActions {
8383 */
8484 public static removeTag ( matrixClient : MatrixClient , tag : string ) : AsyncActionPayload {
8585 // Don't change tags, just removedTags
86- const tags = TagOrderStore . getOrderedTags ( ) ;
87- const removedTags = TagOrderStore . getRemovedTagsAccountData ( ) || [ ] ;
86+ const tags = GroupFilterOrderStore . getOrderedTags ( ) ;
87+ const removedTags = GroupFilterOrderStore . getRemovedTagsAccountData ( ) || [ ] ;
8888
8989 if ( removedTags . includes ( tag ) ) {
9090 // Return a thunk that doesn't do anything, we don't even need
@@ -94,7 +94,7 @@ export default class TagOrderActions {
9494
9595 removedTags . push ( tag ) ;
9696
97- const storeId = TagOrderStore . getStoreId ( ) ;
97+ const storeId = GroupFilterOrderStore . getStoreId ( ) ;
9898
9999 return asyncAction ( 'TagOrderActions.removeTag' , ( ) => {
100100 Analytics . trackEvent ( 'TagOrderActions' , 'removeTag' ) ;
0 commit comments