Job changes for GroupsV2 message receive and profile key updates.

This commit is contained in:
Alan Evans
2020-05-08 10:46:16 -03:00
committed by Alex Hart
parent 36c43ed2fa
commit 9ac1897880
9 changed files with 261 additions and 45 deletions

View File

@@ -60,6 +60,7 @@ public final class FeatureFlags {
private static final String CALLING_PIP = "android.callingPip";
private static final String NEW_GROUP_UI = "android.newGroupUI";
private static final String REACT_WITH_ANY_EMOJI = "android.reactWithAnyEmoji";
private static final String GROUPS_V2 = "android.groupsv2";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -109,7 +110,8 @@ public final class FeatureFlags {
*/
private static final Set<String> STICKY = Sets.newHashSet(
PINS_FOR_ALL_LEGACY,
PINS_FOR_ALL
PINS_FOR_ALL,
GROUPS_V2
);
/**
@@ -255,6 +257,11 @@ public final class FeatureFlags {
return getBoolean(REACT_WITH_ANY_EMOJI, false);
}
/** Groups v2 send and receive. */
public static boolean groupsV2() {
return org.whispersystems.signalservice.FeatureFlags.ZK_GROUPS && getBoolean(GROUPS_V2, false);
}
/** Only for rendering debug info. */
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
return new TreeMap<>(REMOTE_VALUES);