mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Moves DraftAttachments into redux
This commit is contained in:
+1
-13
@@ -55,6 +55,7 @@ export type AttachmentType = {
|
||||
contentType: MIME.MIMEType;
|
||||
path: string;
|
||||
};
|
||||
screenshotData?: Uint8Array;
|
||||
screenshotPath?: string;
|
||||
flags?: number;
|
||||
thumbnail?: ThumbnailType;
|
||||
@@ -96,19 +97,6 @@ export type InMemoryAttachmentDraftType =
|
||||
pending: true;
|
||||
};
|
||||
|
||||
export type OnDiskAttachmentDraftType =
|
||||
| ({
|
||||
caption?: string;
|
||||
pending: false;
|
||||
screenshotPath?: string;
|
||||
} & BaseAttachmentDraftType)
|
||||
| {
|
||||
contentType: MIME.MIMEType;
|
||||
fileName: string;
|
||||
path: string;
|
||||
pending: true;
|
||||
};
|
||||
|
||||
export type AttachmentDraftType =
|
||||
| ({
|
||||
url: string;
|
||||
|
||||
Reference in New Issue
Block a user