1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Remove getCapabilities call for guest users (#2100)

This commit is contained in:
Germain
2022-01-11 12:50:10 +00:00
committed by GitHub
parent cfd865bf8b
commit bd47667e63
2 changed files with 3 additions and 2 deletions

View File

@@ -1041,7 +1041,9 @@ export class MatrixClient extends EventEmitter {
this.syncApi.stop();
}
await this.getCapabilities(true);
if (!this.isGuest()) {
await this.getCapabilities(true);
}
// shallow-copy the opts dict before modifying and storing it
this.clientOpts = Object.assign({}, opts) as IStoredClientOpts;