mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Use config to determine deletion lifespan in storage service.
This commit is contained in:
committed by
Greyson Parrelli
parent
df2e88eaac
commit
6b6980811b
@@ -1114,5 +1114,16 @@ object RemoteConfig {
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/**
|
||||
* Also determines how long an unregistered/deleted record should remain in storage service
|
||||
*/
|
||||
val messageQueueTime: Long by remoteValue(
|
||||
key = "global.messageQueueTimeInSeconds",
|
||||
hotSwappable = true
|
||||
) { value ->
|
||||
val inSeconds = value.asLong(45.days.inWholeSeconds)
|
||||
inSeconds.seconds.inWholeMilliseconds
|
||||
}
|
||||
|
||||
// endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user