You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Appease the tests
This commit is contained in:
@@ -120,7 +120,7 @@ class _MatrixClientPeg implements IMatrixClientPeg {
|
||||
initialSyncLimit: 20,
|
||||
};
|
||||
|
||||
private matrixClient: MatrixClient;
|
||||
private matrixClient: MatrixClient = null;
|
||||
private justRegisteredUserId: string;
|
||||
|
||||
// the credentials used to init the current client object.
|
||||
@@ -157,7 +157,7 @@ class _MatrixClientPeg implements IMatrixClientPeg {
|
||||
|
||||
public replaceUsingCreds(creds: IMatrixClientCreds): void {
|
||||
this.currentClientCreds = creds;
|
||||
this._createClient(creds);
|
||||
this.createClient(creds);
|
||||
}
|
||||
|
||||
public async assign(): Promise<any> {
|
||||
@@ -245,7 +245,7 @@ class _MatrixClientPeg implements IMatrixClientPeg {
|
||||
return matches[1];
|
||||
}
|
||||
|
||||
private _createClient(creds: IMatrixClientCreds): void {
|
||||
private createClient(creds: IMatrixClientCreds): void {
|
||||
// TODO: Make these opts typesafe with the js-sdk
|
||||
const opts = {
|
||||
baseUrl: creds.homeserverUrl,
|
||||
|
||||
Reference in New Issue
Block a user