From 5977859dd98960189e65f34abc2832d281ec48de Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 8 Feb 2019 15:43:17 +0000 Subject: [PATCH] Call isGuest correctly --- 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 5b01912bb7..1453007b18 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1193,7 +1193,7 @@ export default React.createClass({ room_id: localStorage.getItem('mx_last_room_id'), }); } else { - if (MatrixClientPeg.get().isGuest) { + if (MatrixClientPeg.get().isGuest()) { dis.dispatch({action: 'view_welcome_page'}); } else { dis.dispatch({action: 'view_home_page'});