Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent d4fa7e5e68
commit 5e71f3130b

@ -29,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
+ (NSString *)formatMessageTimestamp:(uint64_t)timestamp;
+ (BOOL)isTimestampFromLastHour:(uint64_t)timestamp;
// These two "exemplary" values can be used by views to measure
// the likely size for recent values formatted using isTimestampFromLastHour:.
+ (NSString *)exemplaryNowTimeFormat;
+ (NSString *)exemplaryMinutesTimeFormat;

@ -263,6 +263,7 @@ static NSString *const DATE_FORMAT_WEEKDAY = @"EEEE";
NSCalendar *calendar = [NSCalendar currentCalendar];
// Note: we are careful to treat "future" dates as "now".
NSInteger yearsDiff = [self yearsFromFirstDate:date toSecondDate:nowDate];
NSInteger daysDiff = [self daysFromFirstDate:date toSecondDate:nowDate];
NSInteger minutesDiff

@ -469,7 +469,7 @@ NS_ASSUME_NONNULL_BEGIN
}
if (result == nil) {
DDLogError(@"%@ Unable to build thumbnail for attachmentId: %@", self.logTag, self.uniqueId);
OWSFail(@"%@ Unable to build thumbnail for attachmentId: %@", self.logTag, self.uniqueId);
return;
}

Loading…
Cancel
Save