feat(ui): Add option to disable auto mark as read#13168
Open
SoleroTG wants to merge 1 commit into
Open
Conversation
Member
|
Thank you for the contribution! |
Member
|
@nimishavijay small decision needed. Our friends have a setting for this as well but with a few options
(excuse the German UI, you get the idea 🙊) Should we keep it binary (on vs off) or also offer a few options like off, instant, 3 seconds and 30 seconds? |
Signed-off-by: SoleroTG <github-29h@solero.quietmail.eu>
093040c to
97bb494
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Fixes #13061
Summary
This Pull Request introduces a user preference option to fully disable the "auto mark as read" feature when opening a message in Nextcloud Mail (#13061). When disabled, viewing/skimming messages does not automatically change their status to read, making "mark as read" an explicitly manual action.
Key Changes
"Automatically mark messages as read when opened"in the App Settings Menu under the "Messages" section.auto-mark-as-readuser preference key, integrated it into the backend PHP initial state payload (PageController), and synced it with the frontend Vue Pinia store state on application bootstrap (init.js).ThreadEnvelope.vue(fetchMessage()) to retrieve and check the value ofauto-mark-as-read(defaulting totrue) before starting the 2000ms delay timer that toggles the envelope toseen.How to Test
npm run devornpm run watch).seenflag is sent to the server).Checklist
npm run lintandcomposer run cs:check)npm run test:unit)🤖 AI (if applicable)
CC: @GretaD (as you previously expressed interest in this feature/discussion)