diff --git a/client/identity.go b/client/identity.go index fbbf80d..3443669 100644 --- a/client/identity.go +++ b/client/identity.go @@ -130,10 +130,11 @@ func (id *Identity) FinalizeInvitation(ReceivedContact *meowlib.ContactCard) err id.Peers[i].ContactEncryption = ReceivedContact.EncryptionPublicKey id.Peers[i].ContactLookupKey = ReceivedContact.LookupPublicKey id.Peers[i].ContactPublicKey = ReceivedContact.ContactPublicKey + srvs := []string{} for srv := range ReceivedContact.PullServers { - id.Peers[i].ContactPullServers = append(id.Peers[i].ContactPullServers, ReceivedContact.PullServers[srv].GetUid()) + srvs = append(srvs, ReceivedContact.PullServers[srv].GetUid()) } - + id.Peers[i].ContactPullServers = srvs return nil } }