From a0cd70e4eaebfa6d2267ed3b3abbaf113bc214a9 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 14 Aug 2020 09:17:12 -0300 Subject: [PATCH] Hide legacy group warning in creation flow behind feature flag. --- .../NewGroupView/NewGroupConfirmViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift b/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift index 2114de8bf1..da9c3c1c1e 100644 --- a/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift +++ b/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift @@ -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