mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Inline the attachment backfill flag.
This commit is contained in:
committed by
Cody Henthorne
parent
0dfe71ca8f
commit
c4131bb440
@@ -1,6 +1,5 @@
|
||||
package org.thoughtcrime.securesms
|
||||
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig
|
||||
import org.whispersystems.signalservice.api.account.AccountAttributes
|
||||
|
||||
object AppCapabilities {
|
||||
@@ -15,7 +14,7 @@ object AppCapabilities {
|
||||
deleteSync = true,
|
||||
versionedExpirationTimer = true,
|
||||
storageServiceEncryptionV2 = true,
|
||||
attachmentBackfill = RemoteConfig.attachmentBackfillSync
|
||||
attachmentBackfill = true
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,6 @@ import org.thoughtcrime.securesms.util.EarlyMessageCacheEntry
|
||||
import org.thoughtcrime.securesms.util.IdentityUtil
|
||||
import org.thoughtcrime.securesms.util.MediaUtil
|
||||
import org.thoughtcrime.securesms.util.MessageConstraintsUtil
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig
|
||||
import org.thoughtcrime.securesms.util.SignalE164Util
|
||||
import org.thoughtcrime.securesms.util.TextSecurePreferences
|
||||
import org.thoughtcrime.securesms.util.Util
|
||||
@@ -1655,11 +1654,6 @@ object SyncMessageProcessor {
|
||||
}
|
||||
|
||||
private fun handleSynchronizeAttachmentBackfillRequest(request: SyncMessage.AttachmentBackfillRequest, timestamp: Long) {
|
||||
if (!RemoteConfig.attachmentBackfillSync) {
|
||||
warn(timestamp, "[AttachmentBackfillRequest] Remote config not enabled! Skipping.")
|
||||
return
|
||||
}
|
||||
|
||||
if (request.targetMessage == null || request.targetConversation == null) {
|
||||
warn(timestamp, "[AttachmentBackfillRequest] Target message or target conversation was unset! Can't formulate a response, ignoring.")
|
||||
return
|
||||
|
||||
@@ -1107,13 +1107,6 @@ object RemoteConfig {
|
||||
hotSwappable = false
|
||||
)
|
||||
|
||||
/** Whether or not this device respect attachment backfill requests. */
|
||||
val attachmentBackfillSync: Boolean by remoteBoolean(
|
||||
key = "android.attachmentBackfillSync",
|
||||
defaultValue = false,
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** Whether or not libsignal-net's CDSI lookups use the new route-based internals or the old ones */
|
||||
val libsignalRouteBasedCDSILookup: Boolean by remoteBoolean(
|
||||
key = "android.libsignal.libsignalRouteBasedCDSILookup",
|
||||
|
||||
Reference in New Issue
Block a user