feat: optional setting to start with home screen #2805
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: Optional setting to start with Home page
Closes #2532
This PR addresses the feature request to add an option in the setting to decide which page should be opened when the user starts the RocketChat's desktop app.
Through this PR, a new options is being added in the settings called "Always start on home page". Here's an overview:
lastPath
property.lastPath
property.Here's a snapshot showcasing the new

doAlwaysStartAtHomePage
switch inconfig.json
:For context, this
lastPath
property is stored in theconfig.json
. It's stored individually for each server.Video.of.the.start.at.home.page.setting.mp4
This video showcases the working of the functionality. In this, at first, I opened the app with the "Always start at home page" setting disabled. The app lands me to the last visited page (team view) of the rocket chat community. Then I switched the setting and reopened the app & this time I got at the home page of the server instead of the last visited page.