Activates the chat simplified mode for the simplified setting.
This commit is contained in:
@@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user