Pass newly generated ID to network map when adding peer (#800)

This commit is contained in:
Misha Bragin 2023-04-11 14:28:22 +02:00 committed by GitHub
parent 306e02d32b
commit 251f2d7bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,7 +576,7 @@ func (am *DefaultAccountManager) AddPeer(setupKey, userID string, peer *Peer) (*
return nil, nil, err return nil, nil, err
} }
networkMap := account.GetPeerNetworkMap(peer.ID, am.dnsDomain) networkMap := account.GetPeerNetworkMap(newPeer.ID, am.dnsDomain)
return newPeer, networkMap, nil return newPeer, networkMap, nil
} }