Don't show the group management section if it's empty

This commit is contained in:
Nora Trapp 2020-03-30 10:41:27 -07:00
parent 8170a77485
commit 57dcff6b60

View File

@ -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.