Change Peers to * Peers in identity to retrieve pointer to the real peer
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -71,7 +71,7 @@ func (id *Identity) InvitePeer(MyName string, ContactName string, MessageServerU
|
||||
peer.MyPullServers = MessageServerUids
|
||||
peer.MyName = MyName
|
||||
peer.InvitationMessage = InvitationMessage
|
||||
id.Peers = append(id.Peers, peer)
|
||||
id.Peers = append(id.Peers, &peer)
|
||||
|
||||
return &peer, nil
|
||||
}
|
||||
@ -120,7 +120,7 @@ func (id *Identity) AnswerInvitation(MyName string, ContactName string, MessageS
|
||||
peer.MyPullServers = MessageServerIdxs
|
||||
peer.MyName = MyName
|
||||
peer.InvitationId = ReceivedContact.InvitationId
|
||||
id.Peers = append(id.Peers, peer)
|
||||
id.Peers = append(id.Peers, &peer)
|
||||
|
||||
return &peer
|
||||
}
|
||||
@ -189,7 +189,7 @@ func (id *Identity) TryUnlockHidden(password string) error {
|
||||
return err
|
||||
}
|
||||
p.dbPassword = password
|
||||
id.unlockedHiddenPeers = append(id.unlockedHiddenPeers, p)
|
||||
id.unlockedHiddenPeers = append(id.unlockedHiddenPeers, &p)
|
||||
found = true
|
||||
}
|
||||
}
|
||||
@ -229,7 +229,7 @@ func (id *Identity) generateRandomHiddenStuff() {
|
||||
p.ContactEncryption = p.MyIdentity.Public
|
||||
p.ContactLookupKey = p.MyEncryptionKp.Public
|
||||
// p.Contact.AddUrls([]string{randomLenString(14, 60), randomLenString(14, 60)}) // todo add servers
|
||||
id.Peers = append(id.Peers, p)
|
||||
id.Peers = append(id.Peers, &p)
|
||||
id.HidePeer(0, randomLenString(8, 14))
|
||||
// TODO Add random conversations
|
||||
}
|
||||
|
Reference in New Issue
Block a user