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