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) =>