Skip to content

Commit 51c20b4

Browse files
committed
Fix quality issues.
1 parent 9dcb7c8 commit 51c20b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ import javax.inject.Inject
2828
* 4, 5, 6, 7, 8, 9: migrations from RiotX (which was previously 1, 2, 3, 4, 5, 6).
2929
* 24: Delete nearly all the crypto DB
3030
*/
31-
internal class RealmCryptoStoreMigration @Inject constructor(
32-
) : MatrixRealmMigration(
31+
internal class RealmCryptoStoreMigration @Inject constructor() : MatrixRealmMigration(
3332
dbName = "Crypto",
3433
schemaVersion = 24L,
3534
) {

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/migration/MigrateCryptoTo024.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import org.matrix.android.sdk.internal.util.database.RealmMigrator
2121

2222
internal class MigrateCryptoTo024(realm: DynamicRealm) : RealmMigrator(realm, 24) {
2323
/**
24-
* Delete the whole DB, except tables that are still used to store data:
24+
* Delete the whole DB, except tables that are still used to store data.
25+
* Keep:
2526
* - CryptoMetadataEntity
2627
* - MyDeviceLastSeenInfoEntity
2728
* - CryptoRoomEntity (but remove unused member 'outboundSessionInfo: OutboundGroupSessionInfoEntity')

0 commit comments

Comments
 (0)