Hook up auto-registration as a guest to MatrixChat.

This commit is contained in:
Kegan Dougal 2015-12-04 11:34:50 +00:00
parent d52b3149d4
commit d0ec84fe59
2 changed files with 50 additions and 4 deletions

View file

@ -117,7 +117,7 @@ class MatrixClient {
console.warn("Error using local storage");
}
}
this.guestAccess.markAsGuest(isGuest);
this.guestAccess.markAsGuest(Boolean(isGuest));
createClient(hs_url, is_url, user_id, access_token, this.guestAccess);
if (localStorage) {
try {