Add 'from' field to PackedUserMessage
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-02-13 21:00:50 +01:00
parent 0466b1fe05
commit 8c8326780f
3 changed files with 226 additions and 187 deletions

View File

@ -205,6 +205,7 @@ func (p *Peer) AsymDecryptMessage(Message []byte, Signature []byte) (DecryptedMe
// PackUserMessage will package the previously encrypted message
func (p *Peer) PackUserMessage(message []byte, signature []byte) *meowlib.PackedUserMessage {
var msg meowlib.PackedUserMessage
msg.From = p.MyIdentity.Public
msg.Destination = p.ContactLookupKey
msg.Payload = message
msg.Signature = signature