Remove MyContact contactcard from 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:
parent
df9c6b5d46
commit
24183ff581
@ -64,17 +64,13 @@ func (id *Identity) InvitePeer(MyName string, ContactName string, MessageServerU
|
||||
srv := id.MessageServers.Servers[i].GetServerCard()
|
||||
peer.MyContact.PullServers = append(peer.MyContact.PullServers, srv)
|
||||
}*/
|
||||
pullServers, err := id.MessageServers.LoadServerCardsFromUids(MessageServerUids)
|
||||
/* pullServers, err := id.MessageServers.LoadServerCardsFromUids(MessageServerUids)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
peer.MyContact.PullServers = pullServers
|
||||
peer.MyContact.Name = MyName
|
||||
peer.MyContact.ContactPublicKey = peer.MyIdentity.Public
|
||||
peer.MyContact.EncryptionPublicKey = peer.MyEncryptionKp.Public
|
||||
peer.MyContact.LookupPublicKey = peer.MyLookupKp.Public
|
||||
peer.MyContact.InvitationId = peer.InvitationId
|
||||
peer.MyContact.InvitationMessage = InvitationMessage
|
||||
}*/
|
||||
peer.MyPullServers = MessageServerUids
|
||||
peer.MyName = MyName
|
||||
peer.InvitationMessage = InvitationMessage
|
||||
id.Peers = append(id.Peers, peer)
|
||||
|
||||
return &peer, nil
|
||||
@ -107,15 +103,12 @@ func (id *Identity) AnswerInvitation(MyName string, ContactName string, MessageS
|
||||
srv := id.MessageServers.Servers[i].GetServerCard()
|
||||
peer.MyContact.PullServers = append(peer.MyContact.PullServers, srv)
|
||||
}*/
|
||||
srvCards, err := GetConfig().GetIdentity().MessageServers.LoadServerCardsFromUids(MessageServerIdxs)
|
||||
/* srvCards, err := GetConfig().GetIdentity().MessageServers.LoadServerCardsFromUids(MessageServerIdxs)
|
||||
if err != nil {
|
||||
peer.MyContact.PullServers = srvCards
|
||||
}
|
||||
peer.MyContact.Name = MyName
|
||||
peer.MyContact.ContactPublicKey = peer.MyIdentity.Public
|
||||
peer.MyContact.EncryptionPublicKey = peer.MyEncryptionKp.Public
|
||||
peer.MyContact.LookupPublicKey = peer.MyLookupKp.Public
|
||||
peer.MyContact.InvitationId = ReceivedContact.InvitationId
|
||||
}*/
|
||||
peer.MyPullServers = MessageServerIdxs
|
||||
peer.MyName = MyName
|
||||
peer.InvitationId = ReceivedContact.InvitationId
|
||||
id.Peers = append(id.Peers, peer)
|
||||
|
||||
|
@ -25,7 +25,6 @@ type Peer struct {
|
||||
MyEncryptionKp meowlib.KeyPair `json:"my_encryption_kp,omitempty"`
|
||||
MyLookupKp meowlib.KeyPair `json:"my_lookup_kp,omitempty"`
|
||||
MyPullServers []string `json:"my_pull_servers,omitempty"`
|
||||
MyContact meowlib.ContactCard `json:"my_contact,omitempty"` // todo : remove
|
||||
// Peer keys and infos
|
||||
Contact meowlib.ContactCard `json:"contact,omitempty"` // todo : remove
|
||||
ContactPublicKey string `json:"contact_public_key,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user