Use Photo instead of Image for maybe-animated images that arent gifs

This commit is contained in:
Harry 2024-02-08 15:03:58 -08:00 committed by GitHub
parent 491a8fe665
commit de393e389c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -433,9 +433,6 @@
/* Short text label for a gif attachment, used for thread preview and on the lock screen */
"ATTACHMENT_TYPE_GIF" = "GIF";
/* Short text label for an image attachment, used for thread preview and on the lock screen */
"ATTACHMENT_TYPE_IMAGE" = "Image";
/* Short text label for a photo attachment, used for thread preview and on the lock screen */
"ATTACHMENT_TYPE_PHOTO" = "Photo";

View File

@ -333,8 +333,8 @@ NSUInteger const TSAttachmentSchemaVersion = 1;
attachmentString = OWSLocalizedString(@"ATTACHMENT_TYPE_GIF",
@"Short text label for a gif attachment, used for thread preview and on the lock screen");
} else {
attachmentString = OWSLocalizedString(@"ATTACHMENT_TYPE_IMAGE",
@"Short text label for an image attachment, used for thread preview and on the lock screen");
attachmentString = OWSLocalizedString(@"ATTACHMENT_TYPE_PHOTO",
@"Short text label for a photo attachment, used for thread preview and on the lock screen");
}
} else if ([MIMETypeUtil isImage:self.contentType]) {
attachmentString = OWSLocalizedString(@"ATTACHMENT_TYPE_PHOTO",