No reason to send delivery receipts to ourself

// FREEBIE
This commit is contained in:
Moxie Marlinspike committed 2016-11-20 10:11:34 -08:00
1 parent 856e5eca4c
commit 683c37aca1
1 file changed
+4
@@ -32,6 +32,10 @@ public class ReceiptSender {
throws IOException, NoSuchUserException,
NotPushRegisteredException, TransientPushFailureException
{
if (source.getNumber().equals(destination)) {
return;
}
if (relay.isPresent() && !relay.get().isEmpty()) {
sendRelayedReceipt(source, destination, messageId, relay.get());
} else {