You've already forked matrix-js-sdk
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:
@@ -713,7 +713,6 @@ describe("MatrixClient", function() {
|
|||||||
describe("guest rooms", function() {
|
describe("guest rooms", function() {
|
||||||
it("should only do /sync calls (without filter/pushrules)", function(done) {
|
it("should only do /sync calls (without filter/pushrules)", function(done) {
|
||||||
httpLookups = []; // no /pushrules or /filterw
|
httpLookups = []; // no /pushrules or /filterw
|
||||||
httpLookups.push(CAPABILITIES_RESPONSE);
|
|
||||||
httpLookups.push({
|
httpLookups.push({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: "/sync",
|
path: "/sync",
|
||||||
|
|||||||
@@ -1041,7 +1041,9 @@ export class MatrixClient extends EventEmitter {
|
|||||||
this.syncApi.stop();
|
this.syncApi.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.isGuest()) {
|
||||||
await this.getCapabilities(true);
|
await this.getCapabilities(true);
|
||||||
|
}
|
||||||
|
|
||||||
// shallow-copy the opts dict before modifying and storing it
|
// shallow-copy the opts dict before modifying and storing it
|
||||||
this.clientOpts = Object.assign({}, opts) as IStoredClientOpts;
|
this.clientOpts = Object.assign({}, opts) as IStoredClientOpts;
|
||||||
|
|||||||
Reference in New Issue
Block a user