Tweak the label for quoted photos.

This commit is contained in:
Matthew Chen 2021-09-17 16:00:01 -03:00
parent fb24477431
commit 4ee4cd0c4e
3 changed files with 7 additions and 4 deletions

View File

@ -510,7 +510,7 @@ const CGFloat kRemotelySourcedContentRowSpacing = 3;
@"QUOTED_REPLY_TYPE_VIDEO", @"Indicates this message is a quoted reply to a video file.");
} else if ([MIMETypeUtil isImage:contentType]) {
return NSLocalizedString(
@"QUOTED_REPLY_TYPE_IMAGE", @"Indicates this message is a quoted reply to an image file.");
@"QUOTED_REPLY_TYPE_PHOTO", @"Indicates this message is a quoted reply to a photo file.");
}
return nil;
}

View File

@ -289,9 +289,6 @@ public class QuotedMessageView: ManualStackViewWithLayer {
} else if MIMETypeUtil.isVideo(contentType) {
return NSLocalizedString("QUOTED_REPLY_TYPE_VIDEO",
comment: "Indicates this message is a quoted reply to a video file.")
} else if MIMETypeUtil.isImage(contentType) {
return NSLocalizedString("QUOTED_REPLY_TYPE_IMAGE",
comment: "Indicates this message is a quoted reply to an image file.")
} else if MIMETypeUtil.isAnimated(contentType) {
if contentType.caseInsensitiveCompare(OWSMimeTypeImageGif) == .orderedSame {
return NSLocalizedString("QUOTED_REPLY_TYPE_GIF",
@ -300,6 +297,9 @@ public class QuotedMessageView: ManualStackViewWithLayer {
return NSLocalizedString("QUOTED_REPLY_TYPE_IMAGE",
comment: "Indicates this message is a quoted reply to an image file.")
}
} else if MIMETypeUtil.isImage(contentType) {
return NSLocalizedString("QUOTED_REPLY_TYPE_PHOTO",
comment: "Indicates this message is a quoted reply to a photo file.")
}
return nil
}

View File

@ -4465,6 +4465,9 @@
/* Indicates this message is a quoted reply to an image file. */
"QUOTED_REPLY_TYPE_IMAGE" = "Image";
/* Indicates this message is a quoted reply to a photo file. */
"QUOTED_REPLY_TYPE_PHOTO" = "Photo";
/* Indicates this message is a quoted reply to a video file. */
"QUOTED_REPLY_TYPE_VIDEO" = "Video";