diff --git a/client/identity.go b/client/identity.go index 258d2ad..fc0c63a 100644 --- a/client/identity.go +++ b/client/identity.go @@ -77,13 +77,13 @@ func (id *Identity) InvitePeer(MyName string, ContactName string, MessageServerU } // Checks if the received contact card is an answer to an invitation, returns true if it is, and the proposed and received nicknames -func (id *Identity) CheckInvitation(ReceivedContact *meowlib.ContactCard) (isAnswer bool, proposedNick string, receivedNick string) { +func (id *Identity) CheckInvitation(ReceivedContact *meowlib.ContactCard) (isAnswer bool, proposedNick string, receivedNick string, invitationMessage string) { for _, p := range id.Peers { if p.InvitationId == ReceivedContact.InvitationId { - return true, p.Name, ReceivedContact.Name + return true, p.Name, ReceivedContact.Name, ReceivedContact.InvitationMessage } } - return false, "", ReceivedContact.Name + return false, "", ReceivedContact.Name, ReceivedContact.InvitationMessage } // Answers an invitation, returns the newly created peer including infos to provide a ContactCard