mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 13:39:24 +00:00
Ensure that all SignalValues are having the correct overrides called.
This commit is contained in:
@@ -19,8 +19,8 @@ class ApkUpdateValues(store: KeyValueStore) : SignalStoreValues(store) {
|
||||
private const val PENDING_APK_UPLOAD_TIME = "apk_update.pending_apk_upload_time"
|
||||
}
|
||||
|
||||
override fun onFirstEverAppLaunch() = Unit
|
||||
override fun getKeysToIncludeInBackup(): List<String> = emptyList()
|
||||
public override fun onFirstEverAppLaunch() = Unit
|
||||
public override fun getKeysToIncludeInBackup(): List<String> = emptyList()
|
||||
|
||||
val downloadId: Long by longValue(DOWNLOAD_ID, -2)
|
||||
val digest: ByteArray? get() = store.getBlob(DIGEST, null)
|
||||
|
||||
@@ -97,8 +97,8 @@ class BackupValues(store: KeyValueStore) : SignalStoreValues(store) {
|
||||
private val lock = ReentrantLock()
|
||||
}
|
||||
|
||||
override fun onFirstEverAppLaunch() = Unit
|
||||
override fun getKeysToIncludeInBackup(): List<String> = emptyList()
|
||||
public override fun onFirstEverAppLaunch() = Unit
|
||||
public override fun getKeysToIncludeInBackup(): List<String> = emptyList()
|
||||
|
||||
var cachedMediaCdnPath: String? by stringValue(KEY_CDN_MEDIA_PATH, null)
|
||||
|
||||
|
||||
@@ -82,6 +82,8 @@ class SignalStore(context: Application, private val store: KeyValueStore) {
|
||||
notificationProfile.onFirstEverAppLaunch()
|
||||
releaseChannel.onFirstEverAppLaunch()
|
||||
story.onFirstEverAppLaunch()
|
||||
apkUpdate.onFirstEverAppLaunch()
|
||||
backup.onFirstEverAppLaunch()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
@@ -111,7 +113,9 @@ class SignalStore(context: Application, private val store: KeyValueStore) {
|
||||
imageEditor.keysToIncludeInBackup +
|
||||
notificationProfile.keysToIncludeInBackup +
|
||||
releaseChannel.keysToIncludeInBackup +
|
||||
story.keysToIncludeInBackup
|
||||
story.keysToIncludeInBackup +
|
||||
apkUpdate.keysToIncludeInBackup +
|
||||
backup.keysToIncludeInBackup
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user