Fix voice messages not being delivered
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user