mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Add migration to fix FREE tier setting.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user