Actually calling functions often helps.
This commit is contained in:
parent
e20c599273
commit
d6218ca153
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue