diff --git a/app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/ImagesPreviewScreen.kt b/app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/ImagesPreviewScreen.kt index b088d945cad..bcda40e083d 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/ImagesPreviewScreen.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/conversations/media/preview/ImagesPreviewScreen.kt @@ -198,6 +198,9 @@ private fun Content( CompositionLocalProvider(LocalOverscrollConfiguration provides null) { HorizontalPager( state = pagerState, + key = { index: Int -> + previewState.assetBundleList.getOrNull(index)?.assetBundle?.key ?: "" + }, modifier = Modifier .width(configuration.screenWidthDp.dp) .fillMaxHeight(),