Fix voice messages not being delivered
This commit is contained in:
parent
7ff2a38cdb
commit
559d9329f2
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ async function attachmentToEvent(mentions, attachment) {
|
|||
info: {
|
||||
mimetype: attachment.content_type,
|
||||
size: attachment.size,
|
||||
duration: attachment.duration_secs ? attachment.duration_secs * 1000 : undefined
|
||||
duration: attachment.duration_secs ? Math.round(attachment.duration_secs * 1000) : undefined
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue