Rocket.Chat.Electron
Rocket.Chat.Electron copied to clipboard
feat: optional setting to start with home screen
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:
- When disabled, default behaviour will be there in which when the user click on the server icon in the sidbar, it lands to the last page he/she visited in that server as stored in
lastPath
property. - When enabled, the user will land on the home page of the server ignoring the
lastPath
property.
Here's a snapshot showcasing the new doAlwaysStartAtHomePage
switch in config.json
:
For context, this lastPath
property is stored in the config.json
. It's stored individually for each server.
https://github.com/RocketChat/Rocket.Chat.Electron/assets/126406840/d9e1885d-e80e-4be3-963c-d152dc4b9d3d
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.
Hey @preeesha thank you for the contribution. Can you resolve the conflicts for us?
Thanks for the feedback @jeanfbrito. I'll update you within 24-48h with resolved conflicts.
@jeanfbrito I have resolved the conflicts. You can now proceed with reviewing the PR.