mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Put the default message timer behind a feature flag.
This commit is contained in:
@@ -81,6 +81,7 @@ public final class FeatureFlags {
|
||||
private static final String MP4_GIF_SEND_SUPPORT = "android.mp4GifSendSupport";
|
||||
private static final String MEDIA_QUALITY_LEVELS = "android.mediaQuality.levels";
|
||||
private static final String GROUPS_V2_DESCRIPTION_VERSION = "android.groupsv2.descriptionVersion";
|
||||
private static final String DEFAULT_MESSAGE_TIMER = "android.defaultMessageTimer";
|
||||
|
||||
/**
|
||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||
@@ -115,7 +116,8 @@ public final class FeatureFlags {
|
||||
NOTIFICATION_REWRITE,
|
||||
MP4_GIF_SEND_SUPPORT,
|
||||
MEDIA_QUALITY_LEVELS,
|
||||
GROUPS_V2_DESCRIPTION_VERSION
|
||||
GROUPS_V2_DESCRIPTION_VERSION,
|
||||
DEFAULT_MESSAGE_TIMER
|
||||
);
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -162,7 +164,8 @@ public final class FeatureFlags {
|
||||
NOTIFICATION_REWRITE,
|
||||
MP4_GIF_SEND_SUPPORT,
|
||||
MEDIA_QUALITY_LEVELS,
|
||||
GROUPS_V2_DESCRIPTION_VERSION
|
||||
GROUPS_V2_DESCRIPTION_VERSION,
|
||||
DEFAULT_MESSAGE_TIMER
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -366,6 +369,10 @@ public final class FeatureFlags {
|
||||
return getVersionFlag(GROUPS_V2_DESCRIPTION_VERSION) == VersionFlag.ON;
|
||||
}
|
||||
|
||||
public static boolean defaultMessageTimer() {
|
||||
return getBoolean(DEFAULT_MESSAGE_TIMER, 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