From 9d56f100ab9a952d1a608d5dea4d46e20f493f4f Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 22 Jun 2018 13:57:27 -0600 Subject: [PATCH] Don't show unread badge/bold for search message // FREEBIE --- Signal/src/ViewControllers/HomeView/HomeViewCell.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewCell.m b/Signal/src/ViewControllers/HomeView/HomeViewCell.m index b9fb6f32a..38471b801 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewCell.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewCell.m @@ -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];