You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Always change to LOGGED_IN view to show a room
This commit is contained in:
@@ -819,6 +819,7 @@ export default React.createClass({
|
|||||||
this.focusComposer = true;
|
this.focusComposer = true;
|
||||||
|
|
||||||
const newState = {
|
const newState = {
|
||||||
|
view: VIEWS.LOGGED_IN,
|
||||||
currentRoomId: roomInfo.room_id || null,
|
currentRoomId: roomInfo.room_id || null,
|
||||||
page_type: PageTypes.RoomView,
|
page_type: PageTypes.RoomView,
|
||||||
thirdPartyInvite: roomInfo.third_party_invite,
|
thirdPartyInvite: roomInfo.third_party_invite,
|
||||||
@@ -1556,11 +1557,7 @@ export default React.createClass({
|
|||||||
payload.room_id = roomString;
|
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) {
|
} else if (screen.indexOf('user/') == 0) {
|
||||||
const userId = screen.substring(5);
|
const userId = screen.substring(5);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user