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

Commit

Permalink
Render the home page when viewing the directory
Browse files Browse the repository at this point in the history
The only time this happens is if someone goes to #/directory without previously visiting a page (ie: fresh landing).
  • Loading branch information
turt2live committed Jan 30, 2019
1 parent bdf2bb5 commit 190b763
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,12 @@ export default React.createClass({
Modal.createTrackedDialog('Room directory', '', RoomDirectory, {
config: this.props.config,
}, 'mx_RoomDirectory_dialogWrapper');
// this._setPage(PageTypes.RoomDirectory);
// this.notifyNewScreen('directory');

// View the home page if we need something to look at
if (!this.state.currentGroupId && !this.state.currentRoomId) {
this._setPage(PageTypes.HomePage);
this.notifyNewScreen('home');
}
}
break;
case 'view_my_groups':
Expand Down

0 comments on commit 190b763

Please sign in to comment.