Tweak design of quoted replies.

This commit is contained in:
Matthew Chen 2018-04-09 15:13:07 -04:00
parent a810fb6402
commit 8fe289feec
3 changed files with 8 additions and 2 deletions

View File

@ -281,9 +281,12 @@ NS_ASSUME_NONNULL_BEGIN
} else if ([MIMETypeUtil isVideo:contentType]) {
return NSLocalizedString(
@"QUOTED_REPLY_TYPE_VIDEO", @"Indicates this message is a quoted reply to a video file.");
} else if ([MIMETypeUtil isImage:contentType] || [MIMETypeUtil isAnimated:contentType]) {
} else if ([MIMETypeUtil isImage:contentType]) {
return NSLocalizedString(
@"QUOTED_REPLY_TYPE_IMAGE", @"Indicates this message is a quoted reply to an image file.");
} else if ([MIMETypeUtil isAnimated:contentType]) {
return NSLocalizedString(
@"QUOTED_REPLY_TYPE_GIF", @"Indicates this message is a quoted reply to animated GIF file.");
}
return nil;
}

View File

@ -4500,7 +4500,7 @@ typedef enum : NSUInteger {
= (interactionType == lastInteractionType && recipientStatus == lastRecipientStatus);
}
shouldHideBubbleTail = (interactionType == lastInteractionType && recipientStatus == lastRecipientStatus);
shouldHideBubbleTail = interactionType == lastInteractionType;
lastRecipientStatus = recipientStatus;
} else if (interactionType == OWSInteractionType_IncomingMessage) {

View File

@ -1414,6 +1414,9 @@
/* Indicates this message is a quoted reply to an audio file. */
"QUOTED_REPLY_TYPE_AUDIO" = "Audio";
/* Indicates this message is a quoted reply to animated GIF file. */
"QUOTED_REPLY_TYPE_GIF" = "GIF";
/* Indicates this message is a quoted reply to an image file. */
"QUOTED_REPLY_TYPE_IMAGE" = "Image";