only updates reports for a different note

This commit is contained in:
Vitor Pamplona 2023-09-25 17:26:41 -04:00
parent b1edf4e934
commit 288d80d163

View File

@ -229,7 +229,7 @@ fun SlidingCarousel(
VerticalPager(
state = pagerState,
beyondBoundsPageCount = 1,
modifier = Modifier.fillMaxSize(1f),
modifier = Modifier.fillMaxSize(),
key = { index ->
feed.value.getOrNull(index)?.idHex ?: "$index"
}
@ -246,7 +246,7 @@ fun LoadedVideoCompose(
accountViewModel: AccountViewModel,
nav: (String) -> Unit
) {
var state by remember {
var state by remember(note) {
mutableStateOf(
AccountViewModel.NoteComposeReportState()
)