mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Remove hard coded message backups remote config.
This commit is contained in:
committed by
Jeffrey Starke
parent
6976ac7d44
commit
8b2f58e0e7
@@ -9,7 +9,6 @@ import android.content.Context
|
||||
import androidx.annotation.VisibleForTesting
|
||||
import org.thoughtcrime.securesms.jobs.BackupMessagesJob
|
||||
import org.thoughtcrime.securesms.keyvalue.SignalStore
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig
|
||||
import org.thoughtcrime.securesms.util.toMillis
|
||||
import java.time.LocalDateTime
|
||||
import java.util.Random
|
||||
@@ -43,7 +42,7 @@ class MessageBackupListener : PersistentAlarmManagerListener() {
|
||||
|
||||
@JvmStatic
|
||||
fun schedule(context: Context?) {
|
||||
if (RemoteConfig.messageBackups && SignalStore.backup.areBackupsEnabled) {
|
||||
if (SignalStore.backup.areBackupsEnabled) {
|
||||
MessageBackupListener().onReceive(context, getScheduleIntent())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user