Merge branch 'mkirk/no-unread-status-for-search-results'

pull/1/head
Michael Kirk 7 years ago
commit 9cb2b5114a

@ -191,7 +191,7 @@ NS_ASSUME_NONNULL_BEGIN
self.dateTimeLabel.text
= (overrideDate ? [self stringForDate:overrideDate] : [self stringForDate:thread.lastMessageDate]);
if (hasUnreadMessages) {
if (hasUnreadMessages && overrideSnippet == nil) {
self.dateTimeLabel.textColor = [UIColor ows_blackColor];
self.dateTimeLabel.font = self.unreadFont.ows_mediumWeight;
} else {
@ -200,7 +200,7 @@ NS_ASSUME_NONNULL_BEGIN
}
NSUInteger unreadCount = thread.unreadCount;
if (unreadCount == 0) {
if (unreadCount == 0 || overrideSnippet != nil) {
[self.viewConstraints addObject:[self.payloadView autoPinTrailingToSuperviewMargin]];
} else {
[self.contentView addSubview:self.unreadBadge];

@ -93,7 +93,6 @@ NS_ASSUME_NONNULL_BEGIN
[self.cellView prepareForReuse];
self.accessoryView = nil;
self.accessoryType = UITableViewCellAccessoryNone;
}

Loading…
Cancel
Save