fill usermessage lookupkey

This commit is contained in:
ycc
2022-12-17 20:17:05 +01:00
parent 20c82d0766
commit 1031529964
3 changed files with 6 additions and 4 deletions

View File

@ -81,6 +81,7 @@ func (pl *PeerList) GetConversationRequests() []*meowlib.ToServerMessage_Convers
func (p *Peer) BuildSimpleUserMessage(message []byte) (*meowlib.UserMessage, error) {
var msg meowlib.UserMessage
msg.Destination = p.Contact.LookupPublicKey
msg.From = p.MyIdentity.Public
msg.Data = message
msg.Type = "1"
@ -118,6 +119,7 @@ func (p *Peer) BuildFileMessage(filename string, message []byte) ([]meowlib.User
break
}
var msg meowlib.UserMessage
msg.Destination = p.Contact.LookupPublicKey
msg.From = p.MyIdentity.Public
msg.File.Filename = fi.Name()
msg.File.Chunk = uint32(chunk)