Merge pull request #3861 from matrix-org/dbkr/suppress_integrationmanagers_error

Check for a matrixclient before trying to use it
This commit is contained in:
David Baker 2020-01-17 14:09:05 +00:00 committed by GitHub
commit 3a29a5e66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,7 @@ export class IntegrationManagers {
}
async _setupHomeserverManagers() {
if (!MatrixClientPeg.get()) return;
try {
console.log("Updating homeserver-configured integration managers...");
const homeserverDomain = MatrixClientPeg.getHomeserverName();