From a45785fe1a7941aeb1e8d5401b06ade9b57f3192 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 10 Aug 2015 17:12:31 +0100 Subject: [PATCH] Fix blank page on login --- src/controllers/pages/MatrixChat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index 065e8315..fe0be719 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -205,13 +205,13 @@ module.exports = { firstRoom = RoomListSorter.mostRecentActivityFirst( cli.getRooms() )[0].roomId; - self.setState({ready: true, currentRoom: firstRoom}); + self.setState({ready: true, currentRoom: firstRoom, page_type: self.PageTypes.RoomView}); self.notifyNewScreen('room/'+firstRoom); } else { - self.setState({ready: true}); + self.setState({ready: true, page_type: self.PageTypes.RoomDirectory}); } } else { - self.setState({ready: true}); + self.setState({ready: true, page_type: self.PageTypes.RoomDirectory}); } dis.dispatch({action: 'focus_composer'}); });