Corrects the starting point to show reactions on messages.

This commit is contained in:
Vitor Pamplona 2024-03-14 11:55:13 -04:00
parent f941397cc4
commit 2c54ba1a92

View File

@ -304,7 +304,10 @@ fun NormalChatNote(
val modif2 = if (innerQuote) Modifier else ChatBubbleMaxSizeModifier
val showDetails = remember { mutableStateOf(false) }
val showDetails =
remember {
mutableStateOf(note.zaps.isNotEmpty() || note.zapPayments.isNotEmpty() || note.reactions.isNotEmpty())
}
val clickableModifier =
remember {
@ -447,7 +450,7 @@ private fun MessageBubbleLines(
nav = nav,
)
if (showDetails.value || baseNote.zaps.isNotEmpty() || baseNote.zapPayments.isNotEmpty() || baseNote.reactions.isNotEmpty()) {
if (showDetails.value) {
ConstrainedStatusRow(
bubbleSize = bubbleSize,
availableBubbleSize = availableBubbleSize,