fix(web): pass FileDTO array directly to packContent (files already byte-converted)

This commit is contained in:
2026-09-12 11:06:09 +02:00
parent 2ded578141
commit f36ae73b42
+1 -13
View File
@@ -124,19 +124,7 @@
}
const payload = packContent(
isFile
? {
type: 'files',
files: await Promise.all(
files.map(async (file) => ({
name: file.name,
mime: file.type,
size: file.size,
data: new Uint8Array(await file.arrayBuffer()),
}))
),
}
: { type: 'text', text: textContent },
isFile ? { type: 'files', files } : { type: 'text', text: textContent },
customPassword || undefined
)
const serverNote: ServerNote = {