Use thread to ensure consistent colors in contact cells.

pull/1/head
Matthew Chen 7 years ago
parent 28f37a7a34
commit 763acae158

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

Loading…
Cancel
Save