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