From 4101d4e9de0e4735106930bc7b8a0366901c56fd Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 11 Feb 2019 13:49:18 +0000 Subject: [PATCH] Always change to LOGGED_IN view to show a room --- src/components/structures/MatrixChat.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 7c03aaec57..4bb4e34033 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -819,6 +819,7 @@ export default React.createClass({ this.focusComposer = true; const newState = { + view: VIEWS.LOGGED_IN, currentRoomId: roomInfo.room_id || null, page_type: PageTypes.RoomView, thirdPartyInvite: roomInfo.third_party_invite, @@ -1556,11 +1557,7 @@ export default React.createClass({ payload.room_id = roomString; } - // we can't view a room unless we're logged in - // (a guest account is fine) - if (this.state.view === VIEWS.LOGGED_IN) { - dis.dispatch(payload); - } + dis.dispatch(payload); } else if (screen.indexOf('user/') == 0) { const userId = screen.substring(5);