Send delivery receipts.

This commit is contained in:
Matthew Chen 2018-10-11 12:52:49 -04:00
parent 13373db3bc
commit de7bffa593
1 changed files with 5 additions and 2 deletions

View File

@ -500,8 +500,11 @@ NS_ASSUME_NONNULL_BEGIN
}
}
// Send delivery receipts for "valid data" messages.
[self.deliveryReceiptManager envelopeWasReceived:envelope];
// Send delivery receipts for "valid data" messages received via UD.
BOOL wasReceivedByUD = envelope.type == SSKProtoEnvelopeTypeUnidentifiedSender;
if (wasReceivedByUD) {
[self.deliveryReceiptManager envelopeWasReceived:envelope];
}
}
- (void)sendDeliveryReceiptForEnvelope:(SSKProtoEnvelope *)envelope {