Hide legacy group warning in creation flow behind feature flag.

This commit is contained in:
Matthew Chen 2020-08-14 09:17:12 -03:00
parent a3da1c46bf
commit a0cd70e4ea

View File

@ -102,7 +102,8 @@ public class NewGroupConfirmViewController: OWSViewController {
var lastSection: UIView = firstSection
let membersDoNotSupportGroupsV2 = self.membersDoNotSupportGroupsV2
if membersDoNotSupportGroupsV2.count > 0 {
if RemoteConfig.groupsV2CreateGroups,
membersDoNotSupportGroupsV2.count > 0 {
let legacyGroupSection = UIView()
legacyGroupSection.backgroundColor = Theme.secondaryBackgroundColor
legacyGroupSection.preservesSuperviewLayoutMargins = true