From 51c20b457213c804d39cf0547203a96d746f6446 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 12 Sep 2024 21:14:19 +0200 Subject: [PATCH] Fix quality issues. --- .../sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt | 3 +-- .../internal/crypto/store/db/migration/MigrateCryptoTo024.kt | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt index cf7aaede8f..bbb14aaca0 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt @@ -28,8 +28,7 @@ import javax.inject.Inject * 4, 5, 6, 7, 8, 9: migrations from RiotX (which was previously 1, 2, 3, 4, 5, 6). * 24: Delete nearly all the crypto DB */ -internal class RealmCryptoStoreMigration @Inject constructor( -) : MatrixRealmMigration( +internal class RealmCryptoStoreMigration @Inject constructor() : MatrixRealmMigration( dbName = "Crypto", schemaVersion = 24L, ) { diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/migration/MigrateCryptoTo024.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/migration/MigrateCryptoTo024.kt index d7bb584d95..9a87eb4741 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/migration/MigrateCryptoTo024.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/migration/MigrateCryptoTo024.kt @@ -21,7 +21,8 @@ import org.matrix.android.sdk.internal.util.database.RealmMigrator internal class MigrateCryptoTo024(realm: DynamicRealm) : RealmMigrator(realm, 24) { /** - * Delete the whole DB, except tables that are still used to store data: + * Delete the whole DB, except tables that are still used to store data. + * Keep: * - CryptoMetadataEntity * - MyDeviceLastSeenInfoEntity * - CryptoRoomEntity (but remove unused member 'outboundSessionInfo: OutboundGroupSessionInfoEntity')