Fix voice messages not being delivered

This commit is contained in:
Cadence Ember 2024-11-30 22:56:22 +13:00
parent 7ff2a38cdb
commit 559d9329f2

View file

@ -176,7 +176,7 @@ async function attachmentToEvent(mentions, attachment) {
info: { info: {
mimetype: attachment.content_type, mimetype: attachment.content_type,
size: attachment.size, size: attachment.size,
duration: attachment.duration_secs ? attachment.duration_secs * 1000 : undefined duration: attachment.duration_secs ? Math.round(attachment.duration_secs * 1000) : undefined
} }
} }
} else { } else {