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

Commit

Permalink
force voicenote type to audio/mpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
nanu-c committed Oct 14, 2020
1 parent 0039002 commit 5b4897a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func uploadAttachment(r io.Reader, ct string) (*att, error) {
return &att{id, ct, keys, digest, uint32(plaintextLength), false}, nil
}
func uploadVoiceNote(r io.Reader, ct string) (*att, error) {
ct = "audio/mpeg"
//combined AES-256 and HMAC-SHA256 key
keys := make([]byte, 64)
randBytes(keys)
Expand Down

0 comments on commit 5b4897a

Please sign in to comment.