From 869cdfd12c73453af1b59a8c5f589fee63e8b489 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 7 Jun 2017 17:10:53 -0400 Subject: [PATCH] Add verification state change messages. // FREEBIE --- Signal/src/views/OWSSystemMessageCell.m | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/Signal/src/views/OWSSystemMessageCell.m b/Signal/src/views/OWSSystemMessageCell.m index 1d342d0f1..0304412f0 100644 --- a/Signal/src/views/OWSSystemMessageCell.m +++ b/Signal/src/views/OWSSystemMessageCell.m @@ -163,22 +163,7 @@ } else if ([interaction isKindOfClass:[TSInfoMessage class]]) { if ([interaction isKindOfClass:[OWSVerificationStateChangeMessage class]]) { OWSVerificationStateChangeMessage *message = (OWSVerificationStateChangeMessage *)interaction; - UIFont *titleFont = [self titleFont]; - NSMutableAttributedString *title = [NSMutableAttributedString new]; BOOL isVerified = message.verificationState == OWSVerificationStateVerified; - // if (isVerified) { - // [title - // appendAttributedString:[[NSAttributedString alloc] - // initWithString:@"\uf00c " - // attributes:@{ - // NSFontAttributeName : [UIFont - // ows_fontAwesomeFont:titleFont.pointSize], - // NSForegroundColorAttributeName : [UIColor - // ows_signalBrandBlueColor], - //// NSBaselineOffsetAttributeName : @(-1.f), - // }]]; - // } - NSString *displayName = [[Environment getCurrent].contactsManager displayNameForPhoneIdentifier:message.recipientId]; NSString *titleFormat = (isVerified @@ -196,13 +181,7 @@ : NSLocalizedString(@"VERIFICATION_STATE_CHANGE_FORMAT_NOT_VERIFIED_OTHER_DEVICE", @"Format for info message indicating that the verification state was unverified on " @"another device. Embeds {{user's name or phone number}}."))); - [title appendAttributedString:[[NSAttributedString alloc] - initWithString:[NSString stringWithFormat:titleFormat, displayName] - attributes:@{ - NSFontAttributeName : titleFont, - NSForegroundColorAttributeName : [self textColor], - }]]; - label.attributedText = title; + label.text = [NSString stringWithFormat:titleFormat, displayName]; } else { label.text = interaction.description; }