Appease the linter 2

pull/21833/head
Travis Ralston 2021-01-18 21:00:47 -07:00
parent 6227d3c183
commit 6d770cb4d1
2 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,10 @@ export abstract class ReadyWatchingStore extends EventEmitter implements IDestro
return this.matrixClient; // for external readonly access
}
public useUnitTestClient(cli: MatrixClient) {
this.matrixClient = cli;
}
public destroy() {
this.dispatcher.unregister(this.dispatcherRef);
}

View File

@ -114,7 +114,7 @@ export class RoomListStoreClass extends AsyncStoreWithClient<IState> {
// Public for test usage. Do not call this.
public async makeReady(forcedClient?: MatrixClient) {
if (forcedClient) {
super.readyStore.matrixClient = forcedClient;
super.readyStore.useUnitTestClient(forcedClient);
}
this.checkLoggingEnabled();