Add migration to fix FREE tier setting.

This commit is contained in:
Greyson Parrelli
2025-07-25 12:08:51 -04:00
committed by GitHub
parent e8bea19927
commit 00e740ee14
4 changed files with 60 additions and 1 deletions

View File

@@ -230,6 +230,11 @@ class BackupValues(store: KeyValueStore) : SignalStoreValues(store) {
return MessageBackupTier.deserialize(getLong(KEY_BACKUP_TIER, -1))
}
set(value) {
// TODO [backup] Remove for launch
if (!RemoteConfig.internalUser) {
throw IllegalStateException("Setting backup tier is only allowed for internal users!")
}
Log.i(TAG, "Setting backup tier to $value", Throwable(), true)
val serializedValue = MessageBackupTier.serialize(value)
if (value != null) {