long poll routing first version
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-04-19 09:13:50 +02:00
parent 6cfc54d943
commit 7c17a11426
4 changed files with 287 additions and 198 deletions

View File

@ -141,7 +141,7 @@ func (p *Peer) BuildSingleFileMessage(filename string, message []byte) ([]meowli
file.Data = b[:readTotal]
file.Size = uint64(fi.Size())
msg.Files = append(msg.Files, &file)
msg.Type = "2"
msg.Type = "1"
if chunk == 0 {
msg.Status = &meowlib.ConversationStatus{}
msg.Status.Uuid = uuid.New().String()