Always show timestamp after unread indicator

// FREEBIE
This commit is contained in:
Michael Kirk 2017-07-01 14:06:02 -07:00 committed by Matthew Chen
parent bef3a56e50
commit c6cd0bbcae

View File

@ -1835,6 +1835,11 @@ typedef enum : NSUInteger {
id<OWSMessageData> previousMessage =
[self messageAtIndexPath:[NSIndexPath indexPathForItem:indexPath.row - 1 inSection:indexPath.section]];
if ([previousMessage.interaction isKindOfClass:[TSUnreadIndicatorInteraction class]]) {
// Always show timestamp between unread indicator and the following interaction
return YES;
}
OWSAssert(currentMessage.date);
OWSAssert(previousMessage.date);
NSTimeInterval timeDifference = [currentMessage.date timeIntervalSinceDate:previousMessage.date];