1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Revert "Remove getCapabilities call for guest users (#2100)" (#2107)

This commit is contained in:
Michael Telatynski
2022-01-18 09:55:54 +00:00
committed by GitHub
parent 0a8b825702
commit 652b3a9208
2 changed files with 2 additions and 3 deletions

View File

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