From 9e90240c612af95bc7fb858ffe254a2d0b3e491e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 1 Dec 2026 01:55:54 +0400 Subject: [PATCH] refac --- src/lib/components/chat/MessageInput.svelte | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 104e82b049..c105b82e89 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -1492,12 +1492,7 @@ ); const existing = files.filter((file) => file.type === 'filesystem'); const machineId = machineIdOf(existing[0]) ?? machineIdOf(attachments[0]); - if ( - attachments.some( - (file) => - machineIdOf(file) !== machineId || (file.session_id && file.session_id !== chatId) - ) - ) + if (attachments.some((file) => machineIdOf(file) !== machineId)) throw new Error($i18n.t('Attached files must belong to this chat and the same machine.')); const additions = attachments.filter( (file, index) =>