mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 03:11:10 +01:00
Remove versioned profiles feature flag.
This commit is contained in:
committed by
Greyson Parrelli
parent
99ff0c1e3c
commit
96e888a4f5
@@ -11,7 +11,6 @@ import com.google.android.collect.Sets;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies;
|
||||
import org.thoughtcrime.securesms.jobs.ProfileUploadJob;
|
||||
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob;
|
||||
import org.thoughtcrime.securesms.jobs.RefreshOwnProfileJob;
|
||||
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob;
|
||||
@@ -55,8 +54,6 @@ public final class FeatureFlags {
|
||||
private static final String REMOTE_DELETE = "android.remoteDelete";
|
||||
private static final String PROFILE_FOR_CALLING = "android.profileForCalling.2";
|
||||
private static final String CALLING_PIP = "android.callingPip";
|
||||
private static final String VERSIONED_PROFILES_1 = "android.versionedProfiles";
|
||||
private static final String VERSIONED_PROFILES_2 = "android.versionedProfiles.2";
|
||||
private static final String GROUPS_V2 = "android.groupsv2";
|
||||
private static final String GROUPS_V2_CREATE = "android.groupsv2.create";
|
||||
private static final String GROUPS_V2_CAPACITY = "android.groupsv2.capacity";
|
||||
@@ -73,8 +70,6 @@ public final class FeatureFlags {
|
||||
REMOTE_DELETE,
|
||||
PROFILE_FOR_CALLING,
|
||||
CALLING_PIP,
|
||||
VERSIONED_PROFILES_1,
|
||||
VERSIONED_PROFILES_2,
|
||||
GROUPS_V2,
|
||||
GROUPS_V2_CREATE,
|
||||
GROUPS_V2_CAPACITY,
|
||||
@@ -106,8 +101,6 @@ public final class FeatureFlags {
|
||||
* Flags in this set will stay true forever once they receive a true value from a remote config.
|
||||
*/
|
||||
private static final Set<String> STICKY = Sets.newHashSet(
|
||||
VERSIONED_PROFILES_1,
|
||||
VERSIONED_PROFILES_2,
|
||||
GROUPS_V2
|
||||
);
|
||||
|
||||
@@ -123,11 +116,6 @@ public final class FeatureFlags {
|
||||
* desired test state.
|
||||
*/
|
||||
private static final Map<String, OnFlagChange> FLAG_CHANGE_LISTENERS = new HashMap<String, OnFlagChange>() {{
|
||||
put(VERSIONED_PROFILES_2, (change) -> {
|
||||
if (change == Change.ENABLED) {
|
||||
ApplicationDependencies.getJobManager().add(new ProfileUploadJob());
|
||||
}
|
||||
});
|
||||
put(GROUPS_V2, (change) -> {
|
||||
if (change == Change.ENABLED) {
|
||||
ApplicationDependencies.getJobManager().startChain(new RefreshAttributesJob())
|
||||
@@ -214,15 +202,9 @@ public final class FeatureFlags {
|
||||
return getBoolean(CALLING_PIP, false);
|
||||
}
|
||||
|
||||
/** Read and write versioned profile information. */
|
||||
public static boolean versionedProfiles() {
|
||||
return getBoolean(VERSIONED_PROFILES_1, false) ||
|
||||
getBoolean(VERSIONED_PROFILES_2, false);
|
||||
}
|
||||
|
||||
/** Groups v2 send and receive. */
|
||||
public static boolean groupsV2() {
|
||||
return versionedProfiles() && getBoolean(GROUPS_V2, false);
|
||||
return getBoolean(GROUPS_V2, false);
|
||||
}
|
||||
|
||||
/** Groups v2 send and receive. */
|
||||
|
||||
Reference in New Issue
Block a user