Adding hex index for the Video Feed

This commit is contained in:
Vitor Pamplona
2023-04-30 17:00:47 -04:00
parent 635ed1afc1
commit a38bbd7168
@@ -174,7 +174,10 @@ fun SlidingCarousel(
pageCount = feed.value.size,
state = pagerState,
beyondBoundsPageCount = 1,
modifier = Modifier.fillMaxSize(1f)
modifier = Modifier.fillMaxSize(1f),
key = { index ->
feed.value.getOrNull(index)?.idHex ?: "$index"
}
) { index ->
feed.value.getOrNull(index)?.let { note ->
RenderVideoOrPictureNote(note, accountViewModel, navController)