typo, + invitation return value changed from ContactCard to Peer
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9283764f42
commit
cbedad7178
@ -82,7 +82,7 @@ func (id *Identity) CheckInvitation(ReceivedContact *meowlib.ContactCard) (isAns
|
|||||||
return false, "", ReceivedContact.Name
|
return false, "", ReceivedContact.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
func (id *Identity) AnswerInvitation(MyName string, ContactName string, MessageServerIdxs []int, ReceivedContact *meowlib.ContactCard) *meowlib.ContactCard {
|
func (id *Identity) AnswerInvitation(MyName string, ContactName string, MessageServerIdxs []int, ReceivedContact *meowlib.ContactCard) *Peer {
|
||||||
var peer Peer
|
var peer Peer
|
||||||
var myContactCard meowlib.ContactCard
|
var myContactCard meowlib.ContactCard
|
||||||
peer.MyIdentity = meowlib.NewKeyPair()
|
peer.MyIdentity = meowlib.NewKeyPair()
|
||||||
@ -106,7 +106,7 @@ func (id *Identity) AnswerInvitation(MyName string, ContactName string, MessageS
|
|||||||
|
|
||||||
id.Peers = append(id.Peers, peer)
|
id.Peers = append(id.Peers, peer)
|
||||||
|
|
||||||
return &myContactCard
|
return &peer
|
||||||
}
|
}
|
||||||
|
|
||||||
func (id *Identity) FinalizeInvitation(ReceivedContact *meowlib.ContactCard) error {
|
func (id *Identity) FinalizeInvitation(ReceivedContact *meowlib.ContactCard) error {
|
||||||
|
@ -106,7 +106,7 @@ func (p *Peer) BuildSingleFileMessage(filename string, message []byte) ([]meowli
|
|||||||
|
|
||||||
// Builds an invitation answer user message.
|
// Builds an invitation answer user message.
|
||||||
// it takes as input a contactcard generated by Identity.AnswerInvitation
|
// it takes as input a contactcard generated by Identity.AnswerInvitation
|
||||||
func (p *Peer) BuildInvitationAnswserMessage(myContactCard *meowlib.ContactCard) (*meowlib.UserMessage, error) {
|
func (p *Peer) BuildInvitationAnswerMessage(myContactCard *meowlib.ContactCard) (*meowlib.UserMessage, error) {
|
||||||
var msg meowlib.UserMessage
|
var msg meowlib.UserMessage
|
||||||
var invitation meowlib.Invitation
|
var invitation meowlib.Invitation
|
||||||
invitation.Step = 3
|
invitation.Step = 3
|
||||||
|
Loading…
Reference in New Issue
Block a user