mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Doc commitTagOrdering
This commit is contained in:
parent
e1ea8f0a78
commit
a653ece99e
1 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,16 @@ import TagOrderStore from '../stores/TagOrderStore';
|
|||
|
||||
const TagOrderActions = {};
|
||||
|
||||
/**
|
||||
* Create a TagOrderActions.commitTagOrdering action that represents an
|
||||
* asyncronous request to commit TagOrderStore.getOrderedTags() to account
|
||||
* data.
|
||||
*
|
||||
* @param {MatrixClient} matrixClient the matrix client to set the account
|
||||
* data on.
|
||||
* @returns {function} an asyncronous action of type
|
||||
* TagOrderActions.commitTagOrdering.
|
||||
*/
|
||||
TagOrderActions.commitTagOrdering = function(matrixClient) {
|
||||
return asyncAction('TagOrderActions.commitTagOrdering', () => {
|
||||
// Only commit tags if the state is ready, i.e. not null
|
||||
|
|
Loading…
Reference in a new issue