mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add backfillError to AttachmentType
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import * as React from 'react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import type { AttachmentType } from '../types/Attachment';
|
||||
import type { AttachmentForUIType } from '../types/Attachment';
|
||||
import type { PropsType } from './ForwardMessagesModal';
|
||||
import {
|
||||
ForwardMessagesModal,
|
||||
@@ -17,8 +17,8 @@ import { CompositionTextArea } from './CompositionTextArea';
|
||||
import type { MessageForwardDraft } from '../types/ForwardDraft';
|
||||
|
||||
const createAttachment = (
|
||||
props: Partial<AttachmentType> = {}
|
||||
): AttachmentType => ({
|
||||
props: Partial<AttachmentForUIType> = {}
|
||||
): AttachmentForUIType => ({
|
||||
pending: false,
|
||||
path: 'fileName.jpg',
|
||||
contentType: stringToMIMEType(props.contentType ?? ''),
|
||||
@@ -26,6 +26,7 @@ const createAttachment = (
|
||||
screenshotPath: props.pending === false ? props.screenshotPath : undefined,
|
||||
url: props.pending === false ? (props.url ?? '') : '',
|
||||
size: 3433,
|
||||
isPermanentlyUndownloadable: false,
|
||||
});
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user