fix: do not mark call message as seen when accepting or declining a call - #8633
fix: do not mark call message as seen when accepting or declining a call#8633link2xt wants to merge 1 commit into
Conversation
49467e9 to
3784b3e
Compare
hpk42
left a comment
There was a problem hiding this comment.
I am afraid I don't quite get the overall scheme of how caller/callee and their multi-device setups are meant to land in consistent states including UI notifications/interactions. I filed an issue #8635 and is it not strictly related to this particular PR.
For this PR my main concern is that the second device of the Callee might be left with a "Missed call" notifcation if there is no self-MDN anymore. As far as i see, at receiving time, a stale-on-arrival call notifies via
Lines 368 to 372 in 3784b3e
The accepted-call path should probably be handled before #8631 can be closed but it doesn't necessarily block this PR i guess.
| (MessageState::InNoticed, call_id, MessageState::InFresh), | ||
| ) | ||
| .await | ||
| .context("Failed to mark incoming call as noticed")?; |
There was a problem hiding this comment.
This by itself does not send out anything, right?
There was a problem hiding this comment.
This just marks the message as noticed, as if you opened a chat with the message off the screen. Nothing is sent as a result and the message may still be marked as seen once the user opens the chat and the message appears on the screen, then MDN will be sent.
0e63c4f to
981ec3d
Compare
As far as I understand, this does not depend on MDNs. Declining a call (ending unaccepted call) sends Lines 463 to 468 in 322dd11 If second device comes online much later, it should first receive "missed call", but then a copy of "call ended" message should turn it into declined call. UI may show "missed call" notification for a moment and should probably wait for
I fixed accepted calls as well, now only need to cleanup all SQL calls. |
981ec3d to
a31d221
Compare
When the message is marked as seen, an MDN (read receipt) is sent to self and receiving such MDN marks all messages in the chat above the call message as noticed. Calls may be accepted or declined from the notification, so user may accept or decline a call without ever seeing a call message in the chat.
a31d221 to
58d5ab9
Compare
When the message is marked as seen, an MDN (read receipt) is sent to self
and receiving such MDN marks all messages in the chat above the call message as noticed.
Calls may be accepted or declined from the notification,
so user may accept or decline a call without ever seeing a call message in the chat.
Closes #8631