mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 19:46:58 +02:00
Remeber should be based on the Note
This commit is contained in:
@@ -2663,14 +2663,14 @@ private fun BadgeBox(
|
|||||||
accountViewModel: AccountViewModel,
|
accountViewModel: AccountViewModel,
|
||||||
nav: (String) -> Unit
|
nav: (String) -> Unit
|
||||||
) {
|
) {
|
||||||
val isRepost by remember {
|
val isRepost by remember(baseNote) {
|
||||||
derivedStateOf {
|
derivedStateOf {
|
||||||
baseNote.event is RepostEvent || baseNote.event is GenericRepostEvent
|
baseNote.event is RepostEvent || baseNote.event is GenericRepostEvent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isRepost) {
|
if (isRepost) {
|
||||||
val baseReply by remember {
|
val baseReply by remember(baseNote) {
|
||||||
derivedStateOf {
|
derivedStateOf {
|
||||||
baseNote.replyTo?.lastOrNull()
|
baseNote.replyTo?.lastOrNull()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user