modelfile.tagName === message.user)?.imageUrl ?? '/user.png' : user?.profile_image_url ?? '/user.png'} />
{#if message.user} {#if $modelfiles.map((modelfile) => modelfile.tagName).includes(message.user)} {$modelfiles.find((modelfile) => modelfile.tagName === message.user)?.title} {:else} You {message?.user ?? ''} {/if} {:else} You {/if} {#if message.timestamp} {/if}
{#if message.files}
{#each message.files as file}
{#if file.type === 'image'} input {:else if file.type === 'doc'}
{file.name}
Document
{/if}
{/each}
{/if} {#if edit === true}