mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Update styles for MediaGallery
This commit is contained in:
@@ -33,15 +33,18 @@ const permissiveOptionalBool = z
|
||||
export const permissiveMessageAttachmentSchema = z.object({
|
||||
// Fields required to be NOT NULL
|
||||
messageId: z.string(),
|
||||
messageType: z.string(),
|
||||
editHistoryIndex: z.number(),
|
||||
attachmentType: attachmentDownloadTypeSchema,
|
||||
orderInMessage: z.number(),
|
||||
conversationId: z.string(),
|
||||
sentAt: z.number().catch(0),
|
||||
receivedAt: z.number().catch(0),
|
||||
size: z.number().catch(0),
|
||||
contentType: z.string().catch(APPLICATION_OCTET_STREAM),
|
||||
|
||||
// Fields allowing NULL
|
||||
receivedAtMs: permissiveNumberOrNull,
|
||||
path: permissiveStringOrNull,
|
||||
clientUuid: permissiveStringOrNull,
|
||||
localKey: permissiveStringOrNull,
|
||||
@@ -82,6 +85,7 @@ export const permissiveMessageAttachmentSchema = z.object({
|
||||
wasTooBig: permissiveOptionalBool,
|
||||
backfillError: permissiveOptionalBool,
|
||||
isCorrupted: permissiveOptionalBool,
|
||||
isViewOnce: permissiveOptionalBool,
|
||||
copiedFromQuotedAttachment: permissiveOptionalBool,
|
||||
version: permissiveAttachmentVersion,
|
||||
pending: permissiveOptionalBool,
|
||||
|
||||
Reference in New Issue
Block a user