mirror of https://github.com/oxen-io/session-ios
Don't enqueue sender read receipts from self-sent messages
These messages are always already read. Reminder, there are two types of read receipts: 1. One informs our linked devices that we've read a message on another device. 2. The other informs the sender that we've read their message. This change is about the latter, we'll continue to send the former to ourself. The proximate cause for this change was a failing assert in OWSMessageSender#handleSendToMyself:(TSOutgoingMessage *)outgoingMessage The assert was failing because we were sending a message to ourself which had no body or attachment (the sender-read receipt). Rather than filtering them out from the message sender, we should never ask the message sender to do nonsense work (send a senderReadReceipt to ourself) // FREEBIEpull/1/head
parent
c66fb70b2f
commit
b79244affa
Loading…
Reference in New Issue