Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fix sending voice notes
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 19, 2021
1 parent cae4d39 commit 282f3a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,19 @@ func createMessage(msg *outgoingMessage) *signalservice.DataMessage {
id := signalservice.AttachmentPointer_CdnId{
CdnId: msg.attachment.id,
}
// todo send file names
filename := ""
if msg.attachment.voiceNote {
filename = "voice.mp3"
}
dm.Attachments = []*signalservice.AttachmentPointer{
{
AttachmentIdentifier: &id,
ContentType: &msg.attachment.ct,
Key: msg.attachment.keys[:],
Digest: msg.attachment.digest[:],
Size: &msg.attachment.size,
FileName: &filename,
},
}
if msg.attachment.voiceNote {
Expand Down

0 comments on commit 282f3a2

Please sign in to comment.