From 57dcff6b6020874fb1c32084d6aea0ce005ebc37 Mon Sep 17 00:00:00 2001 From: Nora Trapp Date: Mon, 30 Mar 2020 10:41:27 -0700 Subject: [PATCH] Don't show the group management section if it's empty --- .../OWSConversationSettingsViewController.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m b/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m index 6f3ca33504..7d7d4fa14f 100644 --- a/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m +++ b/Signal/src/ViewControllers/ThreadSettings/OWSConversationSettingsViewController.m @@ -707,9 +707,11 @@ const CGFloat kIconViewLength = 24; ]]; } - [contents addSection:[OWSTableSection sectionWithTitle:NSLocalizedString(@"GROUP_MANAGEMENT_SECTION", - @"Conversation settings table section title") - items:groupItems]]; + if (groupItems.count > 0) { + [contents addSection:[OWSTableSection sectionWithTitle:NSLocalizedString(@"GROUP_MANAGEMENT_SECTION", + @"Conversation settings table section title") + items:groupItems]]; + } } // Mute thread section.