mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Appease the tests
This commit is contained in:
parent
e5c2d17015
commit
1c9b5eb42d
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue