Activates the chat simplified mode for the simplified setting.

pull/812/head
Vitor Pamplona 2024-03-20 13:48:04 -04:00
rodzic 3226e4e024
commit 27fbf1c1ed
1 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

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