split call to BufferUpdateAccountPeers when system user initiates

This commit is contained in:
Maycon Santos
2025-07-08 01:41:07 +02:00
parent 4c58088311
commit 7aa2ca87f2
4 changed files with 13 additions and 1 deletions

View File

@@ -391,7 +391,7 @@ func (am *DefaultAccountManager) DeletePeer(ctx context.Context, accountID, peer
storeEvent()
}
if updateAccountPeers {
if updateAccountPeers && userID != activity.SystemInitiator {
am.BufferUpdateAccountPeers(ctx, accountID)
}