Remove hard coded message backups remote config.

This commit is contained in:
Cody Henthorne
2025-09-22 16:38:01 -04:00
committed by Jeffrey Starke
parent 6976ac7d44
commit 8b2f58e0e7
31 changed files with 58 additions and 220 deletions

View File

@@ -3,7 +3,6 @@ package org.thoughtcrime.securesms.keyvalue
import androidx.annotation.CheckResult
import androidx.annotation.VisibleForTesting
import org.signal.core.util.logging.Log
import org.thoughtcrime.securesms.BuildConfig
import org.thoughtcrime.securesms.database.model.databaseprotos.LocalRegistrationMetadata
import org.thoughtcrime.securesms.database.model.databaseprotos.RestoreDecisionState
import org.thoughtcrime.securesms.dependencies.AppDependencies
@@ -35,7 +34,7 @@ class RegistrationValues internal constructor(store: KeyValueStore) : SignalStor
.putBoolean(HAS_UPLOADED_PROFILE, false)
.putBoolean(REGISTRATION_COMPLETE, false)
.putBoolean(PIN_REQUIRED, true)
.apply { if (BuildConfig.MESSAGE_BACKUP_RESTORE_ENABLED) putBlob(RESTORE_DECISION_STATE, RestoreDecisionState.Start.encode()) }
.putBlob(RESTORE_DECISION_STATE, RestoreDecisionState.Start.encode())
.commit()
}