This commit is contained in:
Timothy Jaeryang Baek
2026-05-09 05:09:20 +09:00
parent 55e7c7854b
commit 7eeff2fdf9
@@ -665,12 +665,12 @@
<StatusHistory statusHistory={message?.statusHistory} />
{/if}
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
{#if message?.files && message.files?.filter( (f) => ['image', 'file'].includes(f.type) ).length > 0}
<div
class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap"
dir={$settings?.chatDirection ?? 'auto'}
>
{#each message.files as file}
{#each message.files.filter((f) => ['image', 'file'].includes(f.type)) as file}
<div>
{#if file.type === 'image' || (file?.content_type ?? '').startsWith('image/')}
<Image src={file.url} alt={message.content} />