Always change to LOGGED_IN view to show a room

pull/21833/head
J. Ryan Stinnett 2019-02-11 13:49:18 +00:00
parent 477d5ac0dc
commit 4101d4e9de
1 changed files with 2 additions and 5 deletions

View File

@ -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);