Fix `this` context in _setupHomeserverManagers for IntegrationManagers

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-17 13:25:28 +01:00
parent ddb5c7fb24
commit 7453f8dd07
1 changed files with 2 additions and 2 deletions

View File

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