Fix this context in _setupHomeserverManagers for IntegrationManagers

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-07-17 13:25:28 +01:00
parent ddb5c7fb24
commit 7453f8dd07

View file

@ -78,7 +78,7 @@ export class IntegrationManagers {
} }
} }
async _setupHomeserverManagers(discoveryResponse) { _setupHomeserverManagers = async (discoveryResponse) => {
console.log("Updating homeserver-configured integration managers..."); console.log("Updating homeserver-configured integration managers...");
if (discoveryResponse && discoveryResponse['m.integrations']) { if (discoveryResponse && discoveryResponse['m.integrations']) {
let managers = discoveryResponse['m.integrations']['managers']; let managers = discoveryResponse['m.integrations']['managers'];
@ -104,7 +104,7 @@ export class IntegrationManagers {
} else { } else {
console.log("Homeserver has no integration managers"); console.log("Homeserver has no integration managers");
} }
} };
_setupAccountManagers() { _setupAccountManagers() {
if (!this._client || !this._client.getUserId()) return; // not logged in if (!this._client || !this._client.getUserId()) return; // not logged in