Make max envelope size remote configurable.

This commit is contained in:
Greyson Parrelli
2025-09-16 14:36:09 -04:00
parent 5807cbc9e9
commit c78b47fbe3
3 changed files with 28 additions and 31 deletions

View File

@@ -875,7 +875,7 @@ object RemoteConfig {
@JvmStatic
@get:JvmName("promptForDelayedNotificationLogs")
val promptForDelayedNotificationLogs: String by remoteString(
key = RemoteConfig.PROMPT_FOR_NOTIFICATION_LOGS,
key = PROMPT_FOR_NOTIFICATION_LOGS,
defaultValue = "*",
hotSwappable = true
)
@@ -1177,5 +1177,14 @@ object RemoteConfig {
if (value.asBoolean(false)) UsePqRatchet.YES else UsePqRatchet.NO
}
/** The maximum allowed envelope size for messages we send. */
@JvmStatic
@get:JvmName("maxEnvelopeSizeBytes")
val maxEnvelopeSizeBytes: Long by remoteLong(
key = "android.maxEnvelopeSizeBytes",
defaultValue = 256.kibiBytes.inWholeBytes,
hotSwappable = true
)
// endregion
}