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

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

Loading…
Cancel
Save