mirror of https://github.com/vector-im/riot-web
Fix blank page on login
parent
19d350e876
commit
a45785fe1a
|
@ -205,13 +205,13 @@ module.exports = {
|
||||||
firstRoom = RoomListSorter.mostRecentActivityFirst(
|
firstRoom = RoomListSorter.mostRecentActivityFirst(
|
||||||
cli.getRooms()
|
cli.getRooms()
|
||||||
)[0].roomId;
|
)[0].roomId;
|
||||||
self.setState({ready: true, currentRoom: firstRoom});
|
self.setState({ready: true, currentRoom: firstRoom, page_type: self.PageTypes.RoomView});
|
||||||
self.notifyNewScreen('room/'+firstRoom);
|
self.notifyNewScreen('room/'+firstRoom);
|
||||||
} else {
|
} else {
|
||||||
self.setState({ready: true});
|
self.setState({ready: true, page_type: self.PageTypes.RoomDirectory});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.setState({ready: true});
|
self.setState({ready: true, page_type: self.PageTypes.RoomDirectory});
|
||||||
}
|
}
|
||||||
dis.dispatch({action: 'focus_composer'});
|
dis.dispatch({action: 'focus_composer'});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue