From 2b8816f02370e6a28b94cf583c19f8083b3977d3 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 22 Jul 2020 09:01:48 +1000 Subject: [PATCH] Don't show blocked banner in closed groups --- .../ConversationView/ConversationViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index d88440b05..c289c058c 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -1100,13 +1100,16 @@ typedef enum : NSUInteger { NSString *blockStateMessage = nil; if ([self isBlockedConversation]) { if (self.isGroupConversation) { + /* blockStateMessage = NSLocalizedString( @"MESSAGES_VIEW_GROUP_BLOCKED", @"Indicates that this group conversation has been blocked."); + */ } else { blockStateMessage = NSLocalizedString( @"MESSAGES_VIEW_CONTACT_BLOCKED", @"Indicates that this 1:1 conversation has been blocked."); } } else if (self.isGroupConversation) { + /* int blockedGroupMemberCount = [self blockedGroupMemberCount]; if (blockedGroupMemberCount == 1) { blockStateMessage = NSLocalizedString(@"MESSAGES_VIEW_GROUP_1_MEMBER_BLOCKED", @@ -1118,6 +1121,7 @@ typedef enum : NSUInteger { @"{{the number of blocked users in this group}}."), [OWSFormat formatInt:blockedGroupMemberCount]]; } + */ } if (blockStateMessage) {