Tweak the label for quoted photos.
This commit is contained in:
parent
fb24477431
commit
4ee4cd0c4e
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user