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 =
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 =
@@ -213,8 +219,10 @@ fun NormalChatNote(
if (note.event is ChannelCreateEvent) {
nav("Channel/${note.idHex}")
} else {
if (accountViewModel.settings.featureSet == FeatureSetType.SIMPLIFIED) {
showDetails.value = !showDetails.value
}
}
},
onLongClick = { popupExpanded = true },
)