Refactor stores and their relationship to the MatrixClientPeg (#124)
* Refactor stores and their relationship to the MatrixClientPeg to avoid import cycles and webpack weirdness Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
31bd10e887
commit
197168b3ba
@@ -36,8 +36,13 @@ export abstract class AsyncStoreWithClient<T extends Object> extends AsyncStore<
|
||||
})(dispatcher);
|
||||
}
|
||||
|
||||
public async start(): Promise<void> {
|
||||
await this.readyStore.start();
|
||||
protected async start(matrixClient: MatrixClient | null): Promise<void> {
|
||||
await this.readyStore.start(matrixClient);
|
||||
}
|
||||
|
||||
// XXX: This method is intended only for use in tests.
|
||||
public async useUnitTestClient(cli: MatrixClient): Promise<void> {
|
||||
await this.readyStore.useUnitTestClient(cli);
|
||||
}
|
||||
|
||||
public get matrixClient(): MatrixClient | null {
|
||||
|
||||
Reference in New Issue
Block a user