Skip to content

Commit 00cb7f5

Browse files
committed
refac
1 parent 068e52f commit 00cb7f5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/lib/components/channel/Messages/Message.svelte

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,15 @@
285285
e.currentTarget.src = '/favicon.png';
286286
}}
287287
/>
288+
{:else if message.user?.role === 'webhook'}
289+
<ProfileImage
290+
src={`${WEBUI_API_BASE_URL}/channels/webhooks/${message.user?.id}/profile/image`}
291+
className={'size-8 ml-0.5'}
292+
/>
288293
{:else}
289294
<ProfilePreview user={message.user}>
290295
<ProfileImage
291-
src={message.user?.role === 'webhook'
292-
? `${WEBUI_API_BASE_URL}/channels/webhooks/${message.user?.id}/profile/image`
293-
: `${WEBUI_API_BASE_URL}/users/${message.user?.id}/profile/image`}
296+
src={`${WEBUI_API_BASE_URL}/users/${message.user?.id}/profile/image`}
294297
className={'size-8 ml-0.5'}
295298
/>
296299
</ProfilePreview>

0 commit comments

Comments
 (0)