Inline the attachment backfill flag.

This commit is contained in:
Greyson Parrelli
2025-03-25 20:06:32 -04:00
committed by Cody Henthorne
parent 0dfe71ca8f
commit c4131bb440
3 changed files with 1 additions and 15 deletions

View File

@@ -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
)
}
}

View File

@@ -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

View File

@@ -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",