mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Limit unnecessary thumbnail generation
This commit is contained in:
@@ -6,9 +6,9 @@ import * as z from 'zod';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import {
|
||||
attachmentDownloadTypeSchema,
|
||||
messageAttachmentTypeSchema,
|
||||
type AttachmentDownloadJobType,
|
||||
type AttachmentDownloadJobTypeType,
|
||||
type MessageAttachmentType,
|
||||
} from '../../types/AttachmentDownload.js';
|
||||
import type { AttachmentType } from '../../types/Attachment.js';
|
||||
import { jsonToObject, objectToJSON, sql } from '../util.js';
|
||||
@@ -28,7 +28,7 @@ export type _AttachmentDownloadJobTypeV1030 = {
|
||||
messageId: string;
|
||||
pending: number;
|
||||
timestamp: number;
|
||||
type: AttachmentDownloadJobTypeType;
|
||||
type: MessageAttachmentType;
|
||||
};
|
||||
|
||||
const attachmentDownloadJobSchemaV1040 = z
|
||||
@@ -36,7 +36,7 @@ const attachmentDownloadJobSchemaV1040 = z
|
||||
attachment: z
|
||||
.object({ size: z.number(), contentType: MIMETypeSchema })
|
||||
.passthrough(),
|
||||
attachmentType: attachmentDownloadTypeSchema,
|
||||
attachmentType: messageAttachmentTypeSchema,
|
||||
ciphertextSize: z.number(),
|
||||
contentType: MIMETypeSchema,
|
||||
digest: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user