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