kopia lustrzana https://github.com/vitorpamplona/amethyst
Activates the chat simplified mode for the simplified setting.
rodzic
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,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 },
|
||||
|
|
Ładowanie…
Reference in New Issue