From bcb3489de4337f4eed16006642cb005c6fc64cfc Mon Sep 17 00:00:00 2001 From: ycc Date: Sat, 10 Feb 2024 22:58:25 +0100 Subject: [PATCH] BugFix pullservers allocation in finalize --- client/identity.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } }