Don't display zap splits when the post is short.
This commit is contained in:
@@ -562,6 +562,7 @@ fun NoteBody(
|
|||||||
nav = nav,
|
nav = nav,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!makeItShort) {
|
||||||
val noteEvent = baseNote.event
|
val noteEvent = baseNote.event
|
||||||
val zapSplits = remember(noteEvent) { noteEvent?.hasZapSplitSetup() ?: false }
|
val zapSplits = remember(noteEvent) { noteEvent?.hasZapSplitSetup() ?: false }
|
||||||
if (zapSplits && noteEvent != null) {
|
if (zapSplits && noteEvent != null) {
|
||||||
@@ -569,6 +570,7 @@ fun NoteBody(
|
|||||||
DisplayZapSplits(noteEvent, false, accountViewModel, nav)
|
DisplayZapSplits(noteEvent, false, accountViewModel, nav)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun RenderNoteRow(
|
private fun RenderNoteRow(
|
||||||
|
|||||||
Reference in New Issue
Block a user