From b89e165dd668bf24eedcb1fbc9be73afd65f8a1b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 16 Jan 2026 15:47:34 +0100 Subject: [PATCH] Do not retrieve the version on each recomposition --- .../features/preferences/impl/root/PreferencesRootPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootPresenter.kt b/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootPresenter.kt index 1e056c0bf0..59aa6ece8e 100644 --- a/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootPresenter.kt +++ b/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootPresenter.kt @@ -139,7 +139,7 @@ class PreferencesRootPresenter( return PreferencesRootState( myUser = matrixUser.value, - version = versionFormatter.get(), + version = remember { versionFormatter.get() }, deviceId = matrixClient.deviceId, isMultiAccountEnabled = isMultiAccountEnabled, otherSessions = otherSessions,