Support for single-attachment delete synced across devices

This commit is contained in:
Scott Nonnenberg 2024-06-21 15:35:18 -07:00 committed by GitHub
parent 97229e2e65
commit ac04d02d4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 422 additions and 55 deletions

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { blobToArrayBuffer } from 'blob-util';
import { v4 as generateUuid } from 'uuid';
import * as log from '../logging/log';
import { makeVideoScreenshot } from '../types/VisualAttachment';
@ -21,6 +22,7 @@ export async function handleVideoAttachment(
const data = await fileToBytes(file);
const attachment: InMemoryAttachmentDraftType = {
contentType: stringToMIMEType(file.type),
clientUuid: generateUuid(),
data,
fileName: file.name,
path: file.name,