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

setGuest(true) when registerGuest()

Signed-off-by: Nicolai Søborg <git@xn--sb-lka.org>
This commit is contained in:
Nicolai Søborg
2021-03-11 22:39:51 +01:00
parent 0b7b35f800
commit 6dabfcda6f

View File

@@ -255,6 +255,7 @@ MatrixBaseApis.prototype.register = function(
MatrixBaseApis.prototype.registerGuest = function(opts, callback) {
opts = opts || {};
opts.body = opts.body || {};
this.setGuest(true);
return this.registerRequest(opts.body, "guest", callback);
};