mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Refactor FeatureFlags.
This commit is contained in:
@@ -19,11 +19,11 @@ object Svr3Migration {
|
||||
* Whether or not you should write to SVR3. If [shouldWriteToSvr2] is also enabled, you should write to SVR3 first.
|
||||
*/
|
||||
val shouldWriteToSvr3: Boolean
|
||||
get() = shouldReadFromSvr3 && FeatureFlags.svr3MigrationPhase().let { it == 1 || it == 2 }
|
||||
get() = shouldReadFromSvr3 && FeatureFlags.svr3MigrationPhase.let { it == 1 || it == 2 }
|
||||
|
||||
/**
|
||||
* Whether or not you should write to SVR2. If [shouldWriteToSvr3] is also enabled, you should write to SVR3 first.
|
||||
*/
|
||||
val shouldWriteToSvr2: Boolean
|
||||
get() = !shouldReadFromSvr3 || FeatureFlags.svr3MigrationPhase() != 2
|
||||
get() = !shouldReadFromSvr3 || FeatureFlags.svr3MigrationPhase != 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user