mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 10:16:47 +00:00
Don't consider empty relays present on receipt delivery.
This commit is contained in:
1 parent
de2f0914f0
commit
6ef3845a34
1 file changed
+5
-2
@@ -49,8 +49,11 @@ public class ReceiptController {
|
||||
throws IOException
|
||||
{
|
||||
try {
|
||||
if (relay.isPresent()) sendRelayedReceipt(source, destination, messageId, relay.get());
|
||||
else sendDirectReceipt(source, destination, messageId);
|
||||
if (relay.isPresent() && !relay.get().isEmpty()) {
|
||||
sendRelayedReceipt(source, destination, messageId, relay.get());
|
||||
} else {
|
||||
sendDirectReceipt(source, destination, messageId);
|
||||
}
|
||||
} catch (NoSuchUserException | NotPushRegisteredException e) {
|
||||
throw new WebApplicationException(Response.Status.NOT_FOUND);
|
||||
} catch (TransientPushFailureException e) {
|
||||
|
||||
Reference in new issue
Block a user