Do not send sync messages if we have no linked devices.

This commit is contained in:
Greyson Parrelli
2025-04-10 10:16:44 -04:00
committed by Alex Hart
parent ebdffc171e
commit 383da335d8

View File

@@ -705,6 +705,11 @@ public class SignalServiceMessageSender {
Content content;
boolean urgent = false;
if (!aciStore.isMultiDevice()) {
Log.w(TAG, "We do not have any linked devices. Skipping.");
return SendMessageResult.success(localAddress, Collections.emptyList(), false, false, 0, Optional.empty());
}
if (message.getContacts().isPresent()) {
content = createMultiDeviceContactsContent(message.getContacts().get().getContactsStream().asStream(), message.getContacts().get().isComplete());
} else if (message.getRead().isPresent()) {