Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the message cache when a message is flagged #2800

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

ChristophWurst
Copy link
Member

When a message is flagged in the front-end (marked as seen, starred, etc) we send the change to IMAP, but the local cache is not updated directly. Hence there is a small time frame where the displayed information or search is incorrect.

To test, open the app and mark a message as unseen. Then quickly reload the page.

On master: the flagged message is shows as seen again. Wait for the sync or press r to see the cache catch up

On this PR: flag change is persisted immediately in the DB, hence after a reload you directly get the "correct" state.

@nextcloud/mail for review & test :)

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst force-pushed the enhancement/flag-message-update-cache branch from 76d7804 to 38ad0d5 Compare March 26, 2020 15:41
Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the instructions, could reproduce and this fixed it. :)

@ChristophWurst ChristophWurst merged commit 9b5c268 into master Mar 26, 2020
@ChristophWurst ChristophWurst deleted the enhancement/flag-message-update-cache branch March 26, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants