No reason to send delivery receipts to ourself

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-11-20 10:11:34 -08:00
parent 856e5eca4c
commit 683c37aca1
1 changed files with 4 additions and 0 deletions

View File

@ -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 {