From 763acae158151241d578beb7dd465d9d85b42098 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 25 Oct 2018 09:35:24 -0400 Subject: [PATCH] Use thread to ensure consistent colors in contact cells. --- SignalMessaging/Views/ContactCellView.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SignalMessaging/Views/ContactCellView.m b/SignalMessaging/Views/ContactCellView.m index 0d694155f..63b00fa47 100644 --- a/SignalMessaging/Views/ContactCellView.m +++ b/SignalMessaging/Views/ContactCellView.m @@ -129,6 +129,10 @@ const CGFloat kContactCellAvatarTextMargin = 12; self.recipientId = recipientId; + [self.primaryStorage.dbReadConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { + self.thread = [TSContactThread getThreadWithContactId:recipientId transaction:transaction]; + }]; + self.nameLabel.attributedText = [self.contactsManager formattedFullNameForRecipientId:recipientId font:self.nameLabel.font];