Ensure that all SignalValues are having the correct overrides called.

This commit is contained in:
Greyson Parrelli
2025-08-28 09:50:02 -04:00
parent 8e9dc78957
commit 460b097a71
3 changed files with 9 additions and 5 deletions

View File

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

View File

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

View File

@@ -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
}
/**