Move 'commit_tags' to action creator

This commit is contained in:
Luke Barnard 2017-12-08 10:52:20 +00:00
parent 12515441cd
commit 72550961e5
4 changed files with 40 additions and 9 deletions

View file

@ -15,8 +15,6 @@ limitations under the License.
*/
import {Store} from 'flux/utils';
import dis from '../dispatcher';
import Analytics from '../Analytics';
import MatrixClientPeg from "../MatrixClientPeg";
const INITIAL_STATE = {
orderedTags: null,
@ -71,10 +69,6 @@ class TagOrderStore extends Store {
this._setState({orderedTags});
}
break;
case 'commit_tags':
MatrixClientPeg.get().setAccountData('im.vector.web.tag_ordering', {tags: this._state.orderedTags});
Analytics.trackEvent('TagOrderStore', 'commit_tags');
break;
}
}