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