Don't show unread badge/bold for search message

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 803a58f33a
commit 9d56f100ab

@ -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];

Loading…
Cancel
Save