fix: Don't emit MsgsNoticed when a message was seen on IMAP #6413
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.
receive_imf
doesn't emitMsgsNoticed
on receipt of an IMAP-seen message, so the code was inconsistent. The easiest fix is to not emitMsgsNoticed
when a message was seen on another device, we don't want to emitMsgsNoticed
if not all messages are seen, otherwise that removes useful notifications from UIs and may lead to missing messages. Checking that all previous chat messages are at leastInNoticed
looks complicated, let's not do this for now.EDIT: This is a replacement of #6351.
EDIT: This approach is wrong because we don't have other events that remove notifications for messages seen on other devices, see #6351 (comment) for more info. Closing the PR.