diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005.kt index 868f62b8cd..9c5095e478 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005.kt @@ -30,6 +30,6 @@ class MigrateAuthTo005(realm: DynamicRealm) : RealmMigrator(realm, 5) { realm.schema.get("SessionParamsEntity") ?.addField(SessionParamsEntityFields.LOGIN_TYPE, String::class.java) ?.setRequired(SessionParamsEntityFields.LOGIN_TYPE, true) - ?.transform { it.set(SessionParamsEntityFields.LOGIN_TYPE, LoginType.UNKNOWN.value) } + ?.transform { it.set(SessionParamsEntityFields.LOGIN_TYPE, LoginType.UNKNOWN.name) } } }