From 203a262c66d9b51d708e888b534d59b8a5542552 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Aug 2022 15:21:44 +0200 Subject: [PATCH 1/6] Add a step in the recipe --- .github/ISSUE_TEMPLATE/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/release.yml b/.github/ISSUE_TEMPLATE/release.yml index b063c93530..b28dbbde69 100644 --- a/.github/ISSUE_TEMPLATE/release.yml +++ b/.github/ISSUE_TEMPLATE/release.yml @@ -21,6 +21,8 @@ body: - [ ] While Weblate is locked, and after the PR from Weblate has been merged, handle all the TODOs in the main `strings.xml` file - [ ] Run the script `./tools/release/pushPlayStoreMetaData.sh`. You can check in the GooglePlay console the Activity log to check the effect. + - [ ] Ensure all [the required PRs](https://github.com/vector-im/element-android/pulls?q=is%3Aopen+is%3Apr+label%3AZ-NextRelease) have been merged + ### Do the release - [ ] Make sure `develop` and `main` are up to date (git pull) From 58954ed59030f7f137bfa9f80fd718ccab64fce9 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Aug 2022 15:33:36 +0200 Subject: [PATCH 2/6] Fix Exception: java.lang.IllegalArgumentException: Configurations cannot be different if used to open the same file. See for instance https://github.com/matrix-org/element-android-rageshakes/issues/41975 --- .../internal/database/RealmCompactOnLaunch.kt | 29 +++++++++++++++++++ .../SessionRealmConfigurationFactory.kt | 3 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt new file mode 100644 index 0000000000..2cdbff4f5a --- /dev/null +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2022 The Matrix.org Foundation C.I.C. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.matrix.android.sdk.internal.database + +import io.realm.DefaultCompactOnLaunchCallback +import javax.inject.Inject + +class RealmCompactOnLaunch @Inject constructor() : DefaultCompactOnLaunchCallback() { + /** + * Forces all RealmCompactOnLaunch instances to be equal. + * Avoids Realm throwing when multiple instances of this class are used. + */ + override fun equals(other: Any?) = other is RealmSessionStoreMigration + override fun hashCode() = 0x1000 +} diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt index 5a0fd74bc0..bee629fd03 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt @@ -41,6 +41,7 @@ private const val REALM_NAME = "disk_store.realm" internal class SessionRealmConfigurationFactory @Inject constructor( private val realmKeysUtils: RealmKeysUtils, private val realmSessionStoreMigration: RealmSessionStoreMigration, + private val realmCompactOnLaunch: RealmCompactOnLaunch, @SessionFilesDirectory val directory: File, @SessionId val sessionId: String, @UserMd5 val userMd5: String, @@ -64,7 +65,7 @@ internal class SessionRealmConfigurationFactory @Inject constructor( } val realmConfiguration = RealmConfiguration.Builder() - .compactOnLaunch() + .compactOnLaunch(realmCompactOnLaunch) .directory(directory) .name(REALM_NAME) .apply { From 033557dba4d9a801ff6792459fb6b4a03ba567a3 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Aug 2022 16:07:57 +0200 Subject: [PATCH 3/6] Towncrier --- CHANGES.md | 48 ++++++++++++++++++++++++++++++++++++++++ changelog.d/5525.wip | 1 - changelog.d/5974.misc | 1 - changelog.d/6505.wip | 1 - changelog.d/6506.wip | 1 - changelog.d/6645.misc | 1 - changelog.d/6693.feature | 1 - changelog.d/6718.bugfix | 1 - changelog.d/6746.feature | 1 - changelog.d/6749.wip | 1 - changelog.d/6783.misc | 1 - changelog.d/6786.misc | 1 - changelog.d/6787.wip | 1 - changelog.d/6795.wip | 1 - changelog.d/6798.wip | 1 - changelog.d/6799.misc | 1 - changelog.d/6801.wip | 1 - changelog.d/6806.wip | 1 - changelog.d/6808.misc | 1 - changelog.d/6827.bugfix | 1 - changelog.d/6836.bugfix | 1 - changelog.d/6843.misc | 1 - changelog.d/6855.bugfix | 1 - changelog.d/6859.wip | 1 - changelog.d/6860.bugfix | 1 - changelog.d/6861.bugfix | 1 - changelog.d/6864.bugfix | 1 - changelog.d/6884.bugfix | 1 - changelog.d/6884.sdk | 1 - changelog.d/6891.bugfix | 1 - 30 files changed, 48 insertions(+), 29 deletions(-) delete mode 100644 changelog.d/5525.wip delete mode 100644 changelog.d/5974.misc delete mode 100644 changelog.d/6505.wip delete mode 100644 changelog.d/6506.wip delete mode 100644 changelog.d/6645.misc delete mode 100644 changelog.d/6693.feature delete mode 100644 changelog.d/6718.bugfix delete mode 100644 changelog.d/6746.feature delete mode 100644 changelog.d/6749.wip delete mode 100644 changelog.d/6783.misc delete mode 100644 changelog.d/6786.misc delete mode 100644 changelog.d/6787.wip delete mode 100644 changelog.d/6795.wip delete mode 100644 changelog.d/6798.wip delete mode 100644 changelog.d/6799.misc delete mode 100644 changelog.d/6801.wip delete mode 100644 changelog.d/6806.wip delete mode 100644 changelog.d/6808.misc delete mode 100644 changelog.d/6827.bugfix delete mode 100644 changelog.d/6836.bugfix delete mode 100644 changelog.d/6843.misc delete mode 100644 changelog.d/6855.bugfix delete mode 100644 changelog.d/6859.wip delete mode 100644 changelog.d/6860.bugfix delete mode 100644 changelog.d/6861.bugfix delete mode 100644 changelog.d/6864.bugfix delete mode 100644 changelog.d/6884.bugfix delete mode 100644 changelog.d/6884.sdk delete mode 100644 changelog.d/6891.bugfix diff --git a/CHANGES.md b/CHANGES.md index 829b1a0caa..66178c86fb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,51 @@ +Changes in Element v1.4.34 (2022-08-23) +======================================= + +Features ✨ +---------- + - Adds New App Layout FABs (hidden behind feature flag) ([#6693](https://github.com/vector-im/element-android/issues/6693)) + - [Notification] - Handle creation of notification for live location and poll start ([#6746](https://github.com/vector-im/element-android/issues/6746)) + +Bugfixes 🐛 +---------- + - Fixes onboarding requiring matrix.org to be accessible on the first step, the server can now be manually changed ([#6718](https://github.com/vector-im/element-android/issues/6718)) + - Fixing sign in/up for homeservers that rely on the SSO fallback url ([#6827](https://github.com/vector-im/element-android/issues/6827)) + - Fixes uncaught exceptions in the SyncWorker to cause the worker to become stuck in the failure state ([#6836](https://github.com/vector-im/element-android/issues/6836)) + - Fixes onboarding captcha crashing when no WebView is available by showing an error with information instead ([#6855](https://github.com/vector-im/element-android/issues/6855)) + - Removes ability to continue registration after the app has been destroyed, fixes the next steps crashing due to missing information from the previous steps ([#6860](https://github.com/vector-im/element-android/issues/6860)) + - Fixes crash when exiting the login or registration entry screens whilst they're loading ([#6861](https://github.com/vector-im/element-android/issues/6861)) + - Fixes server selection being unable to trust certificates ([#6864](https://github.com/vector-im/element-android/issues/6864)) + - Ensure SyncThread is started when the app is launched after a Push has been received. ([#6884](https://github.com/vector-im/element-android/issues/6884)) + - Fixes missing firebase notifications after logging in when UnifiedPush distributor is installed ([#6891](https://github.com/vector-im/element-android/issues/6891)) + +In development 🚧 +---------------- + - Create DM room only on first message - Trigger the flow when the "Direct Message" action is selected from the room member details screen ([#5525](https://github.com/vector-im/element-android/issues/5525)) + - added filter tabs for new App layout's Home screen ([#6505](https://github.com/vector-im/element-android/issues/6505)) + - [App Layout] added dialog to configure app layout ([#6506](https://github.com/vector-im/element-android/issues/6506)) + - Adds space list bottom sheet for new app layout ([#6749](https://github.com/vector-im/element-android/issues/6749)) + - [App Layout] Dialpad moved from bottom navigation tab to a separate activity accessed via home screen context menu ([#6787](https://github.com/vector-im/element-android/issues/6787)) + - Makes toolbar switch title based on space in New App Layout ([#6795](https://github.com/vector-im/element-android/issues/6795)) + - [Devices management] Add a feature flag and empty screen for future new layout ([#6798](https://github.com/vector-im/element-android/issues/6798)) + - Adds new chat bottom sheet as the click action of the main FAB in the new app layout ([#6801](https://github.com/vector-im/element-android/issues/6801)) + - [Devices management] Other sessions section in new layout ([#6806](https://github.com/vector-im/element-android/issues/6806)) + - [New Layout] Adds space settings accessible through clicking the toolbar ([#6859](https://github.com/vector-im/element-android/issues/6859)) + +SDK API changes ⚠️ +------------------ + - Rename `DebugService.logDbUsageInfo` (resp. `Session.logDbUsageInfo`) to `DebugService.getDbUsageInfo` (resp. `Session.getDbUsageInfo`) and return a String instead of logging. The caller may want to log the String. ([#6884](https://github.com/vector-im/element-android/issues/6884)) + +Other changes +------------- + - Removes the Login2 proof of concept - replaced by the FTUE changes ([#5974](https://github.com/vector-im/element-android/issues/5974)) + - Enable auto-capitalization for Room creation Title field ([#6645](https://github.com/vector-im/element-android/issues/6645)) + - Decouples the variant logic from the vector module ([#6783](https://github.com/vector-im/element-android/issues/6783)) + - Add a developer setting to enable LeakCanary at runtime ([#6786](https://github.com/vector-im/element-android/issues/6786)) + - [Create Room] Reduce some boilerplate with room state event contents ([#6799](https://github.com/vector-im/element-android/issues/6799)) + - [Call] Memory leak after a call ([#6808](https://github.com/vector-im/element-android/issues/6808)) + - Fix some string template ([#6843](https://github.com/vector-im/element-android/issues/6843)) + + Changes in Element v1.4.32 (2022-08-10) ======================================= diff --git a/changelog.d/5525.wip b/changelog.d/5525.wip deleted file mode 100644 index 9ddfbab9a3..0000000000 --- a/changelog.d/5525.wip +++ /dev/null @@ -1 +0,0 @@ -Create DM room only on first message - Trigger the flow when the "Direct Message" action is selected from the room member details screen diff --git a/changelog.d/5974.misc b/changelog.d/5974.misc deleted file mode 100644 index d2ddef6f1d..0000000000 --- a/changelog.d/5974.misc +++ /dev/null @@ -1 +0,0 @@ -Removes the Login2 proof of concept - replaced by the FTUE changes diff --git a/changelog.d/6505.wip b/changelog.d/6505.wip deleted file mode 100644 index 1109c5fff1..0000000000 --- a/changelog.d/6505.wip +++ /dev/null @@ -1 +0,0 @@ -added filter tabs for new App layout's Home screen diff --git a/changelog.d/6506.wip b/changelog.d/6506.wip deleted file mode 100644 index 344c0bca2f..0000000000 --- a/changelog.d/6506.wip +++ /dev/null @@ -1 +0,0 @@ -[App Layout] added dialog to configure app layout diff --git a/changelog.d/6645.misc b/changelog.d/6645.misc deleted file mode 100644 index b24655879d..0000000000 --- a/changelog.d/6645.misc +++ /dev/null @@ -1 +0,0 @@ -Enable auto-capitalization for Room creation Title field diff --git a/changelog.d/6693.feature b/changelog.d/6693.feature deleted file mode 100644 index 5e905766a9..0000000000 --- a/changelog.d/6693.feature +++ /dev/null @@ -1 +0,0 @@ -Adds New App Layout FABs (hidden behind feature flag) diff --git a/changelog.d/6718.bugfix b/changelog.d/6718.bugfix deleted file mode 100644 index a7c4c503c7..0000000000 --- a/changelog.d/6718.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixes onboarding requiring matrix.org to be accessible on the first step, the server can now be manually changed diff --git a/changelog.d/6746.feature b/changelog.d/6746.feature deleted file mode 100644 index 7869e7f57a..0000000000 --- a/changelog.d/6746.feature +++ /dev/null @@ -1 +0,0 @@ -[Notification] - Handle creation of notification for live location and poll start diff --git a/changelog.d/6749.wip b/changelog.d/6749.wip deleted file mode 100644 index d7fac1efc1..0000000000 --- a/changelog.d/6749.wip +++ /dev/null @@ -1 +0,0 @@ -Adds space list bottom sheet for new app layout diff --git a/changelog.d/6783.misc b/changelog.d/6783.misc deleted file mode 100644 index d1095c1203..0000000000 --- a/changelog.d/6783.misc +++ /dev/null @@ -1 +0,0 @@ -Decouples the variant logic from the vector module diff --git a/changelog.d/6786.misc b/changelog.d/6786.misc deleted file mode 100644 index a916336ae4..0000000000 --- a/changelog.d/6786.misc +++ /dev/null @@ -1 +0,0 @@ -Add a developer setting to enable LeakCanary at runtime diff --git a/changelog.d/6787.wip b/changelog.d/6787.wip deleted file mode 100644 index ace2b04d9e..0000000000 --- a/changelog.d/6787.wip +++ /dev/null @@ -1 +0,0 @@ -[App Layout] Dialpad moved from bottom navigation tab to a separate activity accessed via home screen context menu diff --git a/changelog.d/6795.wip b/changelog.d/6795.wip deleted file mode 100644 index da525a2c67..0000000000 --- a/changelog.d/6795.wip +++ /dev/null @@ -1 +0,0 @@ -Makes toolbar switch title based on space in New App Layout diff --git a/changelog.d/6798.wip b/changelog.d/6798.wip deleted file mode 100644 index a16270666b..0000000000 --- a/changelog.d/6798.wip +++ /dev/null @@ -1 +0,0 @@ -[Devices management] Add a feature flag and empty screen for future new layout diff --git a/changelog.d/6799.misc b/changelog.d/6799.misc deleted file mode 100644 index b756c2c07b..0000000000 --- a/changelog.d/6799.misc +++ /dev/null @@ -1 +0,0 @@ -[Create Room] Reduce some boilerplate with room state event contents diff --git a/changelog.d/6801.wip b/changelog.d/6801.wip deleted file mode 100644 index bb3bc9d7a1..0000000000 --- a/changelog.d/6801.wip +++ /dev/null @@ -1 +0,0 @@ -Adds new chat bottom sheet as the click action of the main FAB in the new app layout diff --git a/changelog.d/6806.wip b/changelog.d/6806.wip deleted file mode 100644 index 9b00139c62..0000000000 --- a/changelog.d/6806.wip +++ /dev/null @@ -1 +0,0 @@ -[Devices management] Other sessions section in new layout diff --git a/changelog.d/6808.misc b/changelog.d/6808.misc deleted file mode 100644 index 06eeff862b..0000000000 --- a/changelog.d/6808.misc +++ /dev/null @@ -1 +0,0 @@ -[Call] Memory leak after a call diff --git a/changelog.d/6827.bugfix b/changelog.d/6827.bugfix deleted file mode 100644 index 2c3e130aa3..0000000000 --- a/changelog.d/6827.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixing sign in/up for homeservers that rely on the SSO fallback url diff --git a/changelog.d/6836.bugfix b/changelog.d/6836.bugfix deleted file mode 100644 index 6fbcc35001..0000000000 --- a/changelog.d/6836.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixes uncaught exceptions in the SyncWorker to cause the worker to become stuck in the failure state diff --git a/changelog.d/6843.misc b/changelog.d/6843.misc deleted file mode 100644 index 5382e27082..0000000000 --- a/changelog.d/6843.misc +++ /dev/null @@ -1 +0,0 @@ -Fix some string template diff --git a/changelog.d/6855.bugfix b/changelog.d/6855.bugfix deleted file mode 100644 index 63a62de986..0000000000 --- a/changelog.d/6855.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixes onboarding captcha crashing when no WebView is available by showing an error with information instead diff --git a/changelog.d/6859.wip b/changelog.d/6859.wip deleted file mode 100644 index 02fc3616cd..0000000000 --- a/changelog.d/6859.wip +++ /dev/null @@ -1 +0,0 @@ -[New Layout] Adds space settings accessible through clicking the toolbar diff --git a/changelog.d/6860.bugfix b/changelog.d/6860.bugfix deleted file mode 100644 index 22e287c0b3..0000000000 --- a/changelog.d/6860.bugfix +++ /dev/null @@ -1 +0,0 @@ -Removes ability to continue registration after the app has been destroyed, fixes the next steps crashing due to missing information from the previous steps diff --git a/changelog.d/6861.bugfix b/changelog.d/6861.bugfix deleted file mode 100644 index 508325acc6..0000000000 --- a/changelog.d/6861.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixes crash when exiting the login or registration entry screens whilst they're loading diff --git a/changelog.d/6864.bugfix b/changelog.d/6864.bugfix deleted file mode 100644 index 6db3d7c074..0000000000 --- a/changelog.d/6864.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixes server selection being unable to trust certificates diff --git a/changelog.d/6884.bugfix b/changelog.d/6884.bugfix deleted file mode 100644 index 6c6b286688..0000000000 --- a/changelog.d/6884.bugfix +++ /dev/null @@ -1 +0,0 @@ -Ensure SyncThread is started when the app is launched after a Push has been received. diff --git a/changelog.d/6884.sdk b/changelog.d/6884.sdk deleted file mode 100644 index 0de43420f0..0000000000 --- a/changelog.d/6884.sdk +++ /dev/null @@ -1 +0,0 @@ -Rename `DebugService.logDbUsageInfo` (resp. `Session.logDbUsageInfo`) to `DebugService.getDbUsageInfo` (resp. `Session.getDbUsageInfo`) and return a String instead of logging. The caller may want to log the String. diff --git a/changelog.d/6891.bugfix b/changelog.d/6891.bugfix deleted file mode 100644 index b6b46e1d93..0000000000 --- a/changelog.d/6891.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixes missing firebase notifications after logging in when UnifiedPush distributor is installed From 34fef8d1978064b859a0b9fd1dff193dd807a7ab Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Aug 2022 16:08:52 +0200 Subject: [PATCH 4/6] reorder changelog --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 66178c86fb..4615ec8ff0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,7 +3,6 @@ Changes in Element v1.4.34 (2022-08-23) Features ✨ ---------- - - Adds New App Layout FABs (hidden behind feature flag) ([#6693](https://github.com/vector-im/element-android/issues/6693)) - [Notification] - Handle creation of notification for live location and poll start ([#6746](https://github.com/vector-im/element-android/issues/6746)) Bugfixes 🐛 @@ -30,6 +29,7 @@ In development 🚧 - Adds new chat bottom sheet as the click action of the main FAB in the new app layout ([#6801](https://github.com/vector-im/element-android/issues/6801)) - [Devices management] Other sessions section in new layout ([#6806](https://github.com/vector-im/element-android/issues/6806)) - [New Layout] Adds space settings accessible through clicking the toolbar ([#6859](https://github.com/vector-im/element-android/issues/6859)) + - Adds New App Layout FABs (hidden behind feature flag) ([#6693](https://github.com/vector-im/element-android/issues/6693)) SDK API changes ⚠️ ------------------ From adcb3c594a5e0853e0aae869be98b32bbb93b5de Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Aug 2022 16:09:36 +0200 Subject: [PATCH 5/6] fastlane --- fastlane/metadata/android/en-US/changelogs/40104340.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 fastlane/metadata/android/en-US/changelogs/40104340.txt diff --git a/fastlane/metadata/android/en-US/changelogs/40104340.txt b/fastlane/metadata/android/en-US/changelogs/40104340.txt new file mode 100644 index 0000000000..61db61727a --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/40104340.txt @@ -0,0 +1,2 @@ +Main changes in this version: Various bug fixes and stability improvements. +Full changelog: https://github.com/vector-im/element-android/releases From 6c2885ff39696ef3e75bc44c3dbd61b0349fcfb5 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Aug 2022 16:25:47 +0200 Subject: [PATCH 6/6] Granfra's review --- .../android/sdk/internal/database/RealmCompactOnLaunch.kt | 5 ++--- .../internal/database/SessionRealmConfigurationFactory.kt | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt index 2cdbff4f5a..1efb2541a7 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmCompactOnLaunch.kt @@ -17,13 +17,12 @@ package org.matrix.android.sdk.internal.database import io.realm.DefaultCompactOnLaunchCallback -import javax.inject.Inject -class RealmCompactOnLaunch @Inject constructor() : DefaultCompactOnLaunchCallback() { +class RealmCompactOnLaunch : DefaultCompactOnLaunchCallback() { /** * Forces all RealmCompactOnLaunch instances to be equal. * Avoids Realm throwing when multiple instances of this class are used. */ - override fun equals(other: Any?) = other is RealmSessionStoreMigration + override fun equals(other: Any?) = other is RealmCompactOnLaunch override fun hashCode() = 0x1000 } diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt index bee629fd03..16a55c22ac 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/SessionRealmConfigurationFactory.kt @@ -41,7 +41,6 @@ private const val REALM_NAME = "disk_store.realm" internal class SessionRealmConfigurationFactory @Inject constructor( private val realmKeysUtils: RealmKeysUtils, private val realmSessionStoreMigration: RealmSessionStoreMigration, - private val realmCompactOnLaunch: RealmCompactOnLaunch, @SessionFilesDirectory val directory: File, @SessionId val sessionId: String, @UserMd5 val userMd5: String, @@ -65,7 +64,7 @@ internal class SessionRealmConfigurationFactory @Inject constructor( } val realmConfiguration = RealmConfiguration.Builder() - .compactOnLaunch(realmCompactOnLaunch) + .compactOnLaunch(RealmCompactOnLaunch()) .directory(directory) .name(REALM_NAME) .apply {