diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt index 8df84c2b0cc..007ea991c74 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt @@ -152,10 +152,17 @@ internal class SlowSyncManager( } private companion object { + /** + * The current version of Slow Sync. + * + * By bumping this version, we can force all clients to perform a new Slow Sync. + * Useful when a new step is added to Slow Sync, or when we fix some bug in Slow Sync, + * and we'd like to get all users to take advantage of the fix. + */ + const val CURRENT_VERSION = 5 + val MIN_RETRY_DELAY = 1.seconds val MAX_RETRY_DELAY = 10.minutes val MIN_TIME_BETWEEN_SLOW_SYNCS = 7.days } } - -const val CURRENT_VERSION = 4 // bump this version to perform slow sync when some new feature flag was added