fix: remove change to peers group all

This commit is contained in:
Diego Noguês
2026-02-12 17:18:23 +01:00
parent 3d8fdb7a89
commit f9bab22f61
+5 -3
View File
@@ -756,9 +756,11 @@ func (am *DefaultAccountManager) AddPeer(ctx context.Context, accountID, setupKe
} }
} }
err = transaction.AddPeerToAllGroup(ctx, accountID, newPeer.ID) if !peer.ProxyMeta.Embedded {
if err != nil { err = transaction.AddPeerToAllGroup(ctx, accountID, newPeer.ID)
return fmt.Errorf("failed adding peer to All group: %w", err) if err != nil {
return fmt.Errorf("failed adding peer to All group: %w", err)
}
} }
switch { switch {