No reason to send delivery receipts to ourself
// FREEBIE
This commit is contained in:
parent
856e5eca4c
commit
683c37aca1
|
@ -32,6 +32,10 @@ public class ReceiptSender {
|
||||||
throws IOException, NoSuchUserException,
|
throws IOException, NoSuchUserException,
|
||||||
NotPushRegisteredException, TransientPushFailureException
|
NotPushRegisteredException, TransientPushFailureException
|
||||||
{
|
{
|
||||||
|
if (source.getNumber().equals(destination)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (relay.isPresent() && !relay.get().isEmpty()) {
|
if (relay.isPresent() && !relay.get().isEmpty()) {
|
||||||
sendRelayedReceipt(source, destination, messageId, relay.get());
|
sendRelayedReceipt(source, destination, messageId, relay.get());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue