Skip to content

Commit c412d6c

Browse files
Update dependency app.cash.molecule:molecule-runtime to v2.2.0 (#5413)
* Update dependency app.cash.molecule:molecule-runtime to v2.2.0 * Fix compilation warnings --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benoit Marty <[email protected]>
1 parent 5b9ce7a commit c412d6c

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemGroupedEventsRow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fun TimelineItemGroupedEventsRow(
7474
)
7575
},
7676
) {
77-
val isExpanded = rememberSaveable(key = timelineItem.identifier().value) { mutableStateOf(false) }
77+
val isExpanded = rememberSaveable { mutableStateOf(false) }
7878

7979
fun onExpandGroupClick() {
8080
isExpanded.value = !isExpanded.value

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ showkase = { module = "com.airbnb.android:showkase", version.ref = "showkase" }
182182
showkase_processor = { module = "com.airbnb.android:showkase-processor", version.ref = "showkase" }
183183
jsoup = "org.jsoup:jsoup:1.21.2"
184184
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
185-
molecule-runtime = "app.cash.molecule:molecule-runtime:2.1.0"
185+
molecule-runtime = "app.cash.molecule:molecule-runtime:2.2.0"
186186
timber = "com.jakewharton.timber:timber:5.0.1"
187187
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
188188
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }

libraries/maplibre-compose/src/main/kotlin/io/element/android/libraries/maplibre/compose/CameraPositionState.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ import org.maplibre.android.maps.Projection
3131
*/
3232
@Composable
3333
public inline fun rememberCameraPositionState(
34-
key: String? = null,
3534
crossinline init: CameraPositionState.() -> Unit = {}
36-
): CameraPositionState = rememberSaveable(key = key, saver = CameraPositionState.Saver) {
35+
): CameraPositionState = rememberSaveable(saver = CameraPositionState.Saver) {
3736
CameraPositionState().apply(init)
3837
}
3938

libraries/maplibre-compose/src/main/kotlin/io/element/android/libraries/maplibre/compose/Symbol.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ public class SymbolState(
6060

6161
@Composable
6262
public fun rememberSymbolState(
63-
key: String? = null,
6463
position: LatLng = LatLng(0.0, 0.0)
65-
): SymbolState = rememberSaveable(key = key, saver = SymbolState.Saver) {
64+
): SymbolState = rememberSaveable(saver = SymbolState.Saver) {
6665
SymbolState(position)
6766
}
6867

0 commit comments

Comments
 (0)