only updates reports for a different note
This commit is contained in:
@@ -229,7 +229,7 @@ fun SlidingCarousel(
|
|||||||
VerticalPager(
|
VerticalPager(
|
||||||
state = pagerState,
|
state = pagerState,
|
||||||
beyondBoundsPageCount = 1,
|
beyondBoundsPageCount = 1,
|
||||||
modifier = Modifier.fillMaxSize(1f),
|
modifier = Modifier.fillMaxSize(),
|
||||||
key = { index ->
|
key = { index ->
|
||||||
feed.value.getOrNull(index)?.idHex ?: "$index"
|
feed.value.getOrNull(index)?.idHex ?: "$index"
|
||||||
}
|
}
|
||||||
@@ -246,7 +246,7 @@ fun LoadedVideoCompose(
|
|||||||
accountViewModel: AccountViewModel,
|
accountViewModel: AccountViewModel,
|
||||||
nav: (String) -> Unit
|
nav: (String) -> Unit
|
||||||
) {
|
) {
|
||||||
var state by remember {
|
var state by remember(note) {
|
||||||
mutableStateOf(
|
mutableStateOf(
|
||||||
AccountViewModel.NoteComposeReportState()
|
AccountViewModel.NoteComposeReportState()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user