chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2026-01-09 02:45:50 +04:00
1 parent 9e9616b670
commit 924af3d908
65 files changed
+618 -92

No files matched your search

+5 -2
View File
@@ -119,8 +119,11 @@
if (type === 'message') {
if ((data?.parent_id ?? null) === null) {
const tempId = data?.temp_id ?? null;
messages = [{ ...data, temp_id: null }, ...messages.filter((m) => !tempId || m?.temp_id !== tempId)];
const tempId = data?.temp_id ?? null;
messages = [
{ ...data, temp_id: null },
...messages.filter((m) => !tempId || m?.temp_id !== tempId)
];
if (typingUsers.find((user) => user.id === event.user.id)) {
typingUsers = typingUsers.filter((user) => user.id !== event.user.id);
+1 -1
View File
@@ -131,7 +131,7 @@
replyToMessage={replyToMessage?.id === message.id}
disabled={!channel?.write_access || message?.temp_id}
pending={!!message?.temp_id}
showUserProfile={messageIdx === 0 ||
showUserProfile={messageIdx === 0 ||
messageList.at(messageIdx - 1)?.user_id !== message.user_id ||
messageList.at(messageIdx - 1)?.user?.id !== message.user?.id ||
messageList.at(messageIdx - 1)?.meta?.model_id !== message?.meta?.model_id ||
@@ -245,7 +245,9 @@
/>
{:else}
<img
src={message.reply_to_message.user?.role === 'webhook' ? `${WEBUI_API_BASE_URL}/channels/webhooks/${message.reply_to_message.user?.id}/profile/image` : `${WEBUI_API_BASE_URL}/users/${message.reply_to_message.user?.id}/profile/image`}
src={message.reply_to_message.user?.role === 'webhook'
? `${WEBUI_API_BASE_URL}/channels/webhooks/${message.reply_to_message.user?.id}/profile/image`
: `${WEBUI_API_BASE_URL}/users/${message.reply_to_message.user?.id}/profile/image`}
alt={message.reply_to_message.user?.name ?? $i18n.t('Unknown User')}
class="size-4 ml-0.5 rounded-full object-cover"
/>
@@ -277,10 +279,12 @@
alt={message.meta.model_name ?? message.meta.model_id}
class="size-8 translate-y-1 ml-0.5 object-cover rounded-full"
/>
{:else}
{:else}
<ProfilePreview user={message.user}>
<ProfileImage
src={message.user?.role === 'webhook' ? `${WEBUI_API_BASE_URL}/channels/webhooks/${message.user?.id}/profile/image` : `${WEBUI_API_BASE_URL}/users/${message.user?.id}/profile/image`}
src={message.user?.role === 'webhook'
? `${WEBUI_API_BASE_URL}/channels/webhooks/${message.user?.id}/profile/image`
: `${WEBUI_API_BASE_URL}/users/${message.user?.id}/profile/image`}
className={'size-8 ml-0.5'}
/>
</ProfilePreview>