Activates the chat simplified mode for the simplified setting.

This commit is contained in:
Vitor Pamplona
2024-03-20 13:48:04 -04:00
parent 3226e4e024
commit 27fbf1c1ed
@@ -203,7 +203,13 @@ fun NormalChatNote(
val showDetails = val showDetails =
remember { remember {
mutableStateOf(note.zaps.isNotEmpty() || note.zapPayments.isNotEmpty() || note.reactions.isNotEmpty()) mutableStateOf(
if (accountViewModel.settings.featureSet == FeatureSetType.SIMPLIFIED) {
note.zaps.isNotEmpty() || note.zapPayments.isNotEmpty() || note.reactions.isNotEmpty()
} else {
true
},
)
} }
val clickableModifier = val clickableModifier =
@@ -213,7 +219,9 @@ fun NormalChatNote(
if (note.event is ChannelCreateEvent) { if (note.event is ChannelCreateEvent) {
nav("Channel/${note.idHex}") nav("Channel/${note.idHex}")
} else { } else {
showDetails.value = !showDetails.value if (accountViewModel.settings.featureSet == FeatureSetType.SIMPLIFIED) {
showDetails.value = !showDetails.value
}
} }
}, },
onLongClick = { popupExpanded = true }, onLongClick = { popupExpanded = true },