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

Commit 0bc4659

Browse files
committed
Fix crash on logging in
If you arrived at the page via a link to a room. Fixes element-hq/element-web#2634
1 parent 7650e3d commit 0bc4659

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/structures/MatrixChat.js

Lines changed: 4 additions & 0 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,6 +238,7 @@ module.exports = React.createClass({
235238
setStateForNewScreen: function(state) {
236239
const newState = {
237240
screen: undefined,
241+
page_type: PageTypes.RoomDirectory,
238242
currentRoomAlias: null,
239243
currentRoomId: null,
240244
viewUserId: null,

0 commit comments

Comments
 (0)