support audio attachments

This commit is contained in:
hippoz 2023-10-01 19:21:05 +03:00
parent dc3191b187
commit 1bd0351f1b
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -98,6 +98,8 @@
<div class="attachment-filename">{ attachment.file_name }</div>
<a class="icon-button material-icons-outlined small download" href="{ attachmentUrl(attachment.file) }" target="_blank">download</a>
</div>
{:else if renderAs === AttachmentRenderAs.Audio}
<audio controls="controls" class="attachment media" src="{ attachmentUrl(attachment.file) }"></audio>
{:else}
<div class="attachment attachment-card">Couldn't render attachment</div>
{/if}