FAILED label capitalized to spec

pull/1/head
Michael Kirk 7 years ago
parent 76745bee5b
commit d5e15b2a0d

@ -164,12 +164,15 @@ NS_ASSUME_NONNULL_BEGIN
[self configureFonts];
NSString *timestampLabelText;
if ([self isFailedOutgoingMessage:viewItem]) {
self.timestampLabel.text
timestampLabelText
= NSLocalizedString(@"MESSAGE_STATUS_SEND_FAILED", @"Label indicating that a message failed to send.");
} else {
self.timestampLabel.text = [DateUtil formatMessageTimestamp:viewItem.interaction.timestamp];
timestampLabelText = [DateUtil formatMessageTimestamp:viewItem.interaction.timestamp];
}
self.timestampLabel.text = timestampLabelText.localizedUppercaseString;
}
- (CGSize)measureWithConversationViewItem:(ConversationViewItem *)viewItem

@ -302,7 +302,7 @@ static NSString *const DATE_FORMAT_WEEKDAY = @"EEEE";
@"hours in the past. Embeds {{The number of hours}}."),
hoursString];
}
return result.uppercaseString;
return result;
}
+ (BOOL)isTimestampFromLastHour:(uint64_t)timestamp

Loading…
Cancel
Save