Fix a few bugs with TagOrderStore:
- Have TagOrderStore listen for MatrixSync actions so that it can initialise tag ordering state. - Expose an empty list until the client has done its first sync and has fetched list of joined groups
This commit is contained in:
@@ -14,7 +14,10 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { createMatrixActionCreator } from './actionCreators';
|
||||
import {
|
||||
createMatrixActionCreator,
|
||||
createMatrixSyncActionCreator,
|
||||
} from './actionCreators';
|
||||
|
||||
// Events emitted from the matrixClient that we want to dispatch as actions
|
||||
// via MatrixActionCreators. See createMatrixActionCreator.
|
||||
@@ -30,6 +33,8 @@ export default {
|
||||
this.actionCreators = REGISTERED_EVENTS.map((eventId) =>
|
||||
createMatrixActionCreator(matrixClient, eventId),
|
||||
);
|
||||
this.actionCreators.push(createMatrixSyncActionCreator(matrixClient));
|
||||
|
||||
this.actionCreatorsStop = this.actionCreators.map((ac) => ac());
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user