link peer meta update back to account object (#2911)

This commit is contained in:
Pascal Fischer 2024-11-19 17:25:49 +01:00 committed by GitHub
parent eb5d0569ae
commit 5dd6a08ea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -667,6 +667,7 @@ func (am *DefaultAccountManager) SyncPeer(ctx context.Context, sync PeerSync, ac
updated := peer.UpdateMetaIfNew(sync.Meta) updated := peer.UpdateMetaIfNew(sync.Meta)
if updated { if updated {
account.Peers[peer.ID] = peer
log.WithContext(ctx).Tracef("peer %s metadata updated", peer.ID) log.WithContext(ctx).Tracef("peer %s metadata updated", peer.ID)
err = am.Store.SavePeer(ctx, account.Id, peer) err = am.Store.SavePeer(ctx, account.Id, peer)
if err != nil { if err != nil {