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

Commit

Permalink
Merge pull request #2529 from matrix-org/travis/fix-build
Browse files Browse the repository at this point in the history
Render the home page when viewing the directory
  • Loading branch information
bwindels authored Jan 30, 2019
2 parents 728e92c + 190b763 commit 7019197
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 7019197

Please sign in to comment.