Appease the linter 2
parent
6227d3c183
commit
6d770cb4d1
|
@ -42,6 +42,10 @@ export abstract class ReadyWatchingStore extends EventEmitter implements IDestro
|
||||||
return this.matrixClient; // for external readonly access
|
return this.matrixClient; // for external readonly access
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public useUnitTestClient(cli: MatrixClient) {
|
||||||
|
this.matrixClient = cli;
|
||||||
|
}
|
||||||
|
|
||||||
public destroy() {
|
public destroy() {
|
||||||
this.dispatcher.unregister(this.dispatcherRef);
|
this.dispatcher.unregister(this.dispatcherRef);
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ export class RoomListStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
// Public for test usage. Do not call this.
|
// Public for test usage. Do not call this.
|
||||||
public async makeReady(forcedClient?: MatrixClient) {
|
public async makeReady(forcedClient?: MatrixClient) {
|
||||||
if (forcedClient) {
|
if (forcedClient) {
|
||||||
super.readyStore.matrixClient = forcedClient;
|
super.readyStore.useUnitTestClient(forcedClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.checkLoggingEnabled();
|
this.checkLoggingEnabled();
|
||||||
|
|
Loading…
Reference in New Issue