mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Update sender key flag.
This commit is contained in:
committed by
Alex Hart
parent
784c373a0e
commit
2b5b664a8f
@@ -78,7 +78,8 @@ public final class FeatureFlags {
|
||||
private static final String MEDIA_QUALITY_LEVELS = "android.mediaQuality.levels";
|
||||
private static final String RETRY_RECEIPT_LIFESPAN = "android.retryReceiptLifespan";
|
||||
private static final String RETRY_RESPOND_MAX_AGE = "android.retryRespondMaxAge";
|
||||
private static final String SENDER_KEY = "android.senderKey.3";
|
||||
private static final String SENDER_KEY = "android.senderKey.4";
|
||||
private static final String RETRY_RECEIPTS = "android.retryReceipts";
|
||||
private static final String SUGGEST_SMS_BLACKLIST = "android.suggestSmsBlacklist";
|
||||
private static final String ANNOUNCEMENT_GROUPS = "android.announcementGroups";
|
||||
|
||||
@@ -114,6 +115,7 @@ public final class FeatureFlags {
|
||||
RETRY_RECEIPT_LIFESPAN,
|
||||
RETRY_RESPOND_MAX_AGE,
|
||||
SENDER_KEY,
|
||||
RETRY_RECEIPTS,
|
||||
SUGGEST_SMS_BLACKLIST,
|
||||
ANNOUNCEMENT_GROUPS
|
||||
);
|
||||
@@ -162,7 +164,9 @@ public final class FeatureFlags {
|
||||
MEDIA_QUALITY_LEVELS,
|
||||
RETRY_RECEIPT_LIFESPAN,
|
||||
RETRY_RESPOND_MAX_AGE,
|
||||
SUGGEST_SMS_BLACKLIST
|
||||
SUGGEST_SMS_BLACKLIST,
|
||||
RETRY_RECEIPTS,
|
||||
SENDER_KEY
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -349,6 +353,11 @@ public final class FeatureFlags {
|
||||
return getString(MEDIA_QUALITY_LEVELS, "");
|
||||
}
|
||||
|
||||
/** Whether or not sending or responding to retry receipts is enabled. */
|
||||
public static boolean retryReceipts() {
|
||||
return getBoolean(RETRY_RECEIPTS, false);
|
||||
}
|
||||
|
||||
/** How long to wait before considering a retry to be a failure. */
|
||||
public static long retryReceiptLifespan() {
|
||||
return getLong(RETRY_RECEIPT_LIFESPAN, TimeUnit.HOURS.toMillis(1));
|
||||
|
||||
Reference in New Issue
Block a user