Support for single-attachment delete synced across devices
This commit is contained in:
parent
97229e2e65
commit
ac04d02d4f
26 changed files with 422 additions and 55 deletions
|
@ -44,6 +44,7 @@ export type AttachmentType = {
|
|||
error?: boolean;
|
||||
blurHash?: string;
|
||||
caption?: string;
|
||||
clientUuid?: string;
|
||||
contentType: MIME.MIMEType;
|
||||
digest?: string;
|
||||
fileName?: string;
|
||||
|
@ -154,6 +155,7 @@ export type BaseAttachmentDraftType = {
|
|||
export type InMemoryAttachmentDraftType =
|
||||
| ({
|
||||
data: Uint8Array;
|
||||
clientUuid: string;
|
||||
pending: false;
|
||||
screenshotData?: Uint8Array;
|
||||
fileName?: string;
|
||||
|
@ -161,6 +163,7 @@ export type InMemoryAttachmentDraftType =
|
|||
} & BaseAttachmentDraftType)
|
||||
| {
|
||||
contentType: MIME.MIMEType;
|
||||
clientUuid: string;
|
||||
fileName?: string;
|
||||
path?: string;
|
||||
pending: true;
|
||||
|
@ -180,8 +183,10 @@ export type AttachmentDraftType =
|
|||
path: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
clientUuid: string;
|
||||
} & BaseAttachmentDraftType)
|
||||
| {
|
||||
clientUuid: string;
|
||||
contentType: MIME.MIMEType;
|
||||
fileName?: string;
|
||||
path?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue