Add disable GV2 creation option to internal preferences UI.

This commit is contained in:
Alan Evans
2020-07-15 12:28:47 -03:00
parent d02d506b13
commit 833ca8cce9
9 changed files with 30 additions and 39 deletions

View File

@@ -200,9 +200,11 @@ public final class FeatureFlags {
return getBoolean(GROUPS_V2, false);
}
/** Groups v2 send and receive. */
/** Attempt groups v2 creation. */
public static boolean groupsV2create() {
return groupsV2() && getBoolean(GROUPS_V2_CREATE, false);
return groupsV2() &&
getBoolean(GROUPS_V2_CREATE, false) &&
!SignalStore.internalValues().gv2DoNotCreateGv2Groups();
}
/**