You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-26 04:01:04 +03:00
Fix crash on logging in
If you arrived at the page via a link to a room. Fixes https://github.com/vector-im/vector-web/issues/2634
This commit is contained in:
@ -75,6 +75,9 @@ module.exports = React.createClass({
|
||||
loading: true,
|
||||
screen: undefined,
|
||||
|
||||
// What the LoggedInView would be showing if visible
|
||||
page_type: PageTypes.RoomDirectory,
|
||||
|
||||
// If we are viewing a room by alias, this contains the alias
|
||||
currentRoomAlias: null,
|
||||
|
||||
@ -235,6 +238,7 @@ module.exports = React.createClass({
|
||||
setStateForNewScreen: function(state) {
|
||||
const newState = {
|
||||
screen: undefined,
|
||||
page_type: PageTypes.RoomDirectory,
|
||||
currentRoomAlias: null,
|
||||
currentRoomId: null,
|
||||
viewUserId: null,
|
||||
|
Reference in New Issue
Block a user