Improve quoted attachment typings

This commit is contained in:
trevor-signal 2024-05-23 17:06:41 -04:00 committed by GitHub
parent 38226115a4
commit 5f0080a7d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 98 additions and 97 deletions

View file

@ -10,7 +10,7 @@ import {
} from '../textsecure/processDataMessage';
import type { ProcessedAttachment } from '../textsecure/Types.d';
import { SignalService as Proto } from '../protobuf';
import { IMAGE_GIF } from '../types/MIME';
import { IMAGE_GIF, IMAGE_JPEG } from '../types/MIME';
import { generateAci } from '../types/ServiceId';
const ACI_1 = generateAci();
@ -142,7 +142,7 @@ describe('processDataMessage', () => {
text: 'text',
attachments: [
{
contentType: 'image/jpeg',
contentType: IMAGE_JPEG,
fileName: 'image.jpg',
thumbnail: PROCESSED_ATTACHMENT,
},