From d6218ca153f71eeda6f3808d4ee0e54ebd2f629b Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 23 Mar 2016 12:02:26 +0000 Subject: [PATCH] Actually calling functions often helps. --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 459847ce88..1795913e49 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -468,7 +468,7 @@ module.exports = React.createClass({ var Loader = sdk.getComponent("elements.Spinner"); var modal = Modal.createDialog(Loader); - if (MatrixClientPeg.get().isGuest) { + if (MatrixClientPeg.get().isGuest()) { Modal.createDialog(NeedToRegisterDialog, { title: "Please Register", description: "Guest users can't create new rooms. Please register to create room and start a chat."