This commit is contained in:
Timothy Jaeryang Baek committed 2026-12-01 01:55:54 +04:00
1 parent 4fce9764f9
commit 9e90240c61
1 file changed
+1 -6
+1 -6
View File
@@ -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) =>