Do not retrieve the version on each recomposition

This commit is contained in:
Benoit Marty 2026-01-16 15:47:34 +01:00
parent 1070b55bb9
commit 953dc1e393

View file

@ -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,