Conversation
4c270c4 to
5150b95
Compare
| // We also don't send read receipts for contact requests. | ||
| // Read receipts will not be sent even after accepting the chat. | ||
| let to_id = if curr_blocked == Blocked::Not | ||
| && !curr_hidden |
There was a problem hiding this comment.
Just in case, i also saw this logic, but was never thinking it's a problem because if the contact is accepted, why hide the fact we've noticed reactions from it
There was a problem hiding this comment.
The problem is that you can even send empty reaction message (removing reaction) and then there is no notification or anything visible, but hidden message is still added and MDN is sent when you open the chat.
There is anyway no double checkmark for hidden messages, so this is just wasting the traffic and storage and bumps "last seen" so green dot appears.
|
The similar problem: i opened a chat on Desktop and forgot about it. If the contact sends me a message, it immediately receives an MDN which reveals that the chat is open on my device. Basically the problem is: you don't do anything that assumes sending MDNs to accepted contacts, but they are sent anyway and that reveals some of your state or previous actions. |
There was a problem hiding this comment.
Anyway, apart from other similar problems, this makes sense because marking a chat as noticed shouldn't send any MDNs to contacts. Would be good to send MDNs to self however, to remove notifications for reactions.
EDIT: MDNs to self are sent as previously. No further changes are needed.
Hidden messages are marked as seen when chat is marked as noticed. MDNs to such messages should not be sent as this notifies the hidden message sender that the chat was opened. The issue discovered by Frank Seifferth.
5150b95 to
ad91e7e
Compare
Hidden messages are marked as seen
when chat is marked as noticed.
MDNs to such messages should not be sent
as this notifies the hidden message sender
that the chat was opened.
The issue discovered by Frank Seifferth.
When chat is marked as noticed, hidden messages are marked as seen here:
core/src/chat.rs
Lines 3305 to 3322 in bf02785