From 315c1d7dc42cfabc93ef833606e6165f389424a9 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 22 Sep 2017 15:18:20 -0400 Subject: [PATCH] Hide all read receipts in UI if not enabled. // FREEBIE --- .../ConversationView/ConversationViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index ce447310d..3f22d3c35 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -2134,7 +2134,8 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) { ? NSLocalizedString(@"MESSAGE_STATUS_DELIVERED", @"message footer for delivered messages") : NSLocalizedString(@"MESSAGE_STATUS_SENT", @"message footer for sent messages")); NSAttributedString *result = [[NSAttributedString alloc] initWithString:text]; - if (outgoingMessage.wasDelivered && outgoingMessage.readRecipientIds.count > 0) { + if ([OWSReadReceiptManager.sharedManager areReadReceiptsEnabled] && outgoingMessage.wasDelivered + && outgoingMessage.readRecipientIds.count > 0) { NSAttributedString *checkmark = [[NSAttributedString alloc] initWithString:@"\uf00c " attributes:@{