fix(frontend): readable links and file chips on own bubbles
This commit is contained in:
1 parent
6ae28cb321
commit
995322b17a
6 files changed
+55
-8
No files matched your search
@@ -8,9 +8,10 @@
|
||||
chatId: number;
|
||||
media: MediaRef[];
|
||||
onopen: (index: number) => void;
|
||||
own?: boolean;
|
||||
}
|
||||
|
||||
let { media, chatId, onopen }: Props = $props();
|
||||
let { media, chatId, onopen, own = false }: Props = $props();
|
||||
|
||||
const asFiles = $derived(
|
||||
media.every((item) => !isPreviewable(item.kind, item.mime))
|
||||
@@ -31,7 +32,7 @@
|
||||
{#if asFiles}
|
||||
<div class="AlbumFiles">
|
||||
{#each media as item, index (item.id ?? index)}
|
||||
<FileChip media={item} />
|
||||
<FileChip media={item} {own} />
|
||||
{/each}
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in new issue
Block a user