fix: remove change to peers group all

This commit is contained in:
Diego Noguês
2026-02-12 14:06:23 +01:00
parent bf7bdf6c4f
commit 3bc8cbb13f

View File

@@ -752,9 +752,11 @@ func (am *DefaultAccountManager) AddPeer(ctx context.Context, accountID, setupKe
}
}
err = transaction.AddPeerToAllGroup(ctx, accountID, newPeer.ID)
if err != nil {
return fmt.Errorf("failed adding peer to All group: %w", err)
if !peer.ProxyMeta.Embedded {
err = transaction.AddPeerToAllGroup(ctx, accountID, newPeer.ID)
if err != nil {
return fmt.Errorf("failed adding peer to All group: %w", err)
}
}
switch {