typo, + invitation return value changed from ContactCard to Peer
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ycc 2024-01-03 19:40:38 +01:00
parent 9283764f42
commit cbedad7178
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ func (id *Identity) CheckInvitation(ReceivedContact *meowlib.ContactCard) (isAns
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 myContactCard meowlib.ContactCard
peer.MyIdentity = meowlib.NewKeyPair()
@ -106,7 +106,7 @@ func (id *Identity) AnswerInvitation(MyName string, ContactName string, MessageS
id.Peers = append(id.Peers, peer)
return &myContactCard
return &peer
}
func (id *Identity) FinalizeInvitation(ReceivedContact *meowlib.ContactCard) error {

View File

@ -106,7 +106,7 @@ func (p *Peer) BuildSingleFileMessage(filename string, message []byte) ([]meowli
// Builds an invitation answer user message.
// 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 invitation meowlib.Invitation
invitation.Step = 3