Skip to content

Commit c8638f6

Browse files
committed
Perform the migration, even if the current version is not known.
1 parent ae7a79e commit c8638f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

features/migration/impl/src/main/kotlin/io/element/android/features/migration/impl/MigrationPresenter.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ class MigrationPresenter @Inject constructor(
4646
val migrationValue = migrationStoreVersion ?: return@LaunchedEffect
4747
if (migrationValue == -1) {
4848
// Fresh install, no migration needed
49-
Timber.d("Fresh install, no migration needed.")
50-
migrationStore.setApplicationMigrationVersion(lastMigration)
51-
return@LaunchedEffect
49+
Timber.d("Fresh install, or previous installed application did not have the migration mechanism.")
5250
}
5351
if (migrationValue == lastMigration) {
5452
Timber.d("Current app migration version: $migrationValue. No migration needed.")

0 commit comments

Comments
 (0)