mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Job changes for GroupsV2 message receive and profile key updates.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user