Fix crash when launching app for non-internal users.

This commit is contained in:
Alex Hart
2025-08-02 20:46:43 -03:00
parent aebda41fdc
commit 386744fa72

View File

@@ -225,7 +225,7 @@ class BackupValues(store: KeyValueStore) : SignalStoreValues(store) {
}
set(value) {
// TODO [backup] Remove for launch
if (!RemoteConfig.internalUser) {
if (!RemoteConfig.internalUser && value != null) {
throw IllegalStateException("Setting backup tier is only allowed for internal users!")
}