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

fix: Emit MsgsNoticed on receipt of an IMAP-seen message #6351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Dec 20, 2024

imap::Session::sync_seen_flags() emits MsgsNoticed for existing messages seen on other devices, so receive_imf should do the same when it receives a seen message. Otherwise a multi-device user may see a new message notification on device A, just swipe it, then see another new message notification and mark it as read, and when their device B goes online, it will show a notification for the first message, and it won't be removed because MsgsNoticed isn't emitted. I have checked this with my DC Android and Desktop. With this fix the notification should be removed at least.

EDIT: The fix doesn't help DC Desktop not show a notification for the first message. I didn't check Android though. Anyway, MsgsNoticed was missing obviously.

`imap::Session::sync_seen_flags()` emits `MsgsNoticed` for existing messages seen on other devices,
so `receive_imf` should do the same when it receives a seen message. Otherwise a multi-device user
may see a new message notification on device A, just swipe it, then see another new message
notification and mark it as read, and when their device B goes online, it will show a notification
for the first message, and it won't be removed because `MsgsNoticed` isn't emitted. I have checked
this with my DC Android and Desktop. With this fix the notification should be removed at least.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant