]> nmode's Git Repositories - signal-cli/commitdiff
Ignore destination if it's an empty uuid
authorAsamK <asamk@gmx.de>
Wed, 25 Dec 2024 15:23:31 +0000 (16:23 +0100)
committerAsamK <asamk@gmx.de>
Wed, 25 Dec 2024 15:23:36 +0000 (16:23 +0100)
Fixes #1643

lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java

index 5deffb3e22e3851afaaec90966684cd56e09e58f..90d67a362e8fa2615b7341e384f70db972f17c4c 100644 (file)
@@ -962,7 +962,7 @@ public final class IncomingMessageHandler {
 
     private DeviceAddress getDestination(SignalServiceEnvelope envelope) {
         final var destination = envelope.getDestinationServiceId();
 
     private DeviceAddress getDestination(SignalServiceEnvelope envelope) {
         final var destination = envelope.getDestinationServiceId();
-        if (destination == null) {
+        if (destination == null || destination.isUnknown()) {
             return new DeviceAddress(account.getSelfRecipientId(), account.getAci(), account.getDeviceId());
         }
         return new DeviceAddress(account.getRecipientResolver().resolveRecipient(destination),
             return new DeviceAddress(account.getSelfRecipientId(), account.getAci(), account.getDeviceId());
         }
         return new DeviceAddress(account.getRecipientResolver().resolveRecipient(destination),