Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 56f224e

Browse files
authored
Merge pull request #571 from matrix-org/dbkr/fix_login_crash
Fix crash on logging in
2 parents 7650e3d + 2aba646 commit 56f224e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/structures/MatrixChat.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ module.exports = React.createClass({
7575
loading: true,
7676
screen: undefined,
7777

78+
// What the LoggedInView would be showing if visible
79+
page_type: PageTypes.RoomDirectory,
80+
7881
// If we are viewing a room by alias, this contains the alias
7982
currentRoomAlias: null,
8083

@@ -235,8 +238,6 @@ module.exports = React.createClass({
235238
setStateForNewScreen: function(state) {
236239
const newState = {
237240
screen: undefined,
238-
currentRoomAlias: null,
239-
currentRoomId: null,
240241
viewUserId: null,
241242
logged_in: false,
242243
ready: false,
@@ -597,6 +598,9 @@ module.exports = React.createClass({
597598
ready: false,
598599
collapse_lhs: false,
599600
collapse_rhs: false,
601+
currentRoomAlias: null,
602+
currentRoomId: null,
603+
page_type: PageTypes.RoomDirectory,
600604
});
601605
},
602606

0 commit comments

Comments
 (0)