]> nmode's Git Repositories - signal-cli/commitdiff
Only respond to sync requests if we're the master device
authorAsamK <asamk@gmx.de>
Sat, 1 May 2021 13:02:49 +0000 (15:02 +0200)
committerAsamK <asamk@gmx.de>
Sat, 1 May 2021 13:03:26 +0000 (15:03 +0200)
lib/src/main/java/org/asamk/signal/manager/Manager.java

index 65414306a09c6f3f3b94ec93716aad25eda5978d..2f34f7a160f8b201411080cda27e7723ef0ad415 100644 (file)
@@ -1903,7 +1903,7 @@ public class Manager implements Closeable {
                             destination,
                             ignoreAttachments));
                 }
-                if (syncMessage.getRequest().isPresent()) {
+                if (syncMessage.getRequest().isPresent() && account.isMasterDevice()) {
                     var rm = syncMessage.getRequest().get();
                     if (rm.isContactsRequest()) {
                         actions.add(SendSyncContactsAction.create());