Allow REST fallback via remote config.

This commit is contained in:
Cody Henthorne
2025-05-15 10:52:36 -04:00
committed by GitHub
parent 2bc9926d97
commit 96ece3f424
3 changed files with 54 additions and 10 deletions

View File

@@ -170,7 +170,8 @@ public class ApplicationDependencyProvider implements AppDependencies.Provider {
keysApi,
Optional.of(new SecurityEventListener(context)),
SignalExecutors.newCachedBoundedExecutor("signal-messages", ThreadUtil.PRIORITY_IMPORTANT_BACKGROUND_THREAD, 1, 16, 30),
ByteUnit.KILOBYTES.toBytes(256));
ByteUnit.KILOBYTES.toBytes(256),
RemoteConfig::useMessageSendRestFallback);
}
@Override

View File

@@ -1087,5 +1087,13 @@ object RemoteConfig {
hotSwappable = false
)
@JvmStatic
@get:JvmName("useMessageSendRestFallback")
val useMessageSendRestFallback: Boolean by remoteBoolean(
key = "android.useMessageSendRestFallback",
defaultValue = false,
hotSwappable = true
)
// endregion
}