Process incoming story messages
This commit is contained in:
parent
df7cdfacc7
commit
eb91eb6fec
84 changed files with 4382 additions and 652 deletions
|
@ -1,9 +1,10 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type {
|
||||
AttachmentType,
|
||||
AttachmentDraftType,
|
||||
ThumbnailType,
|
||||
} from '../../types/Attachment';
|
||||
import { IMAGE_JPEG } from '../../types/MIME';
|
||||
|
||||
|
@ -17,6 +18,14 @@ export const fakeAttachment = (
|
|||
...overrides,
|
||||
});
|
||||
|
||||
export const fakeThumbnail = (url: string): ThumbnailType => ({
|
||||
contentType: IMAGE_JPEG,
|
||||
height: 100,
|
||||
path: url,
|
||||
url,
|
||||
width: 100,
|
||||
});
|
||||
|
||||
export const fakeDraftAttachment = (
|
||||
overrides: Partial<AttachmentDraftType> = {}
|
||||
): AttachmentDraftType => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue