From 190b763c5debafba628f4adaf89825aaefe5d4d1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 29 Jan 2019 23:25:07 -0700 Subject: [PATCH] Render the home page when viewing the directory The only time this happens is if someone goes to #/directory without previously visiting a page (ie: fresh landing). --- src/components/structures/MatrixChat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 982ee55f51..161a0fa984 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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':