Fix small multiple_closures_with_trailing_closure warning

This commit is contained in:
Stefan Ceriu
2026-05-21 17:48:32 +03:00
parent 9609fa4616
commit 14f7f4a6bb
@@ -170,13 +170,14 @@ struct RoomScreen: View {
private func onViewAllKnockRequests() { private func onViewAllKnockRequests() {
context.send(viewAction: .viewKnockRequests) context.send(viewAction: .viewKnockRequests)
} }
@ViewBuilder @ViewBuilder
private var jumpToReadMarkerButton: some View { private var jumpToReadMarkerButton: some View {
if timelineContext.viewState.shouldShowJumpToReadMarker { if timelineContext.viewState.shouldShowJumpToReadMarker {
TimelineScrollButton(direction: .up, TimelineScrollButton(direction: .up,
showsBadge: true, showsBadge: true) {
onLongPress: { revealMarkAsReadPill(source: .up) }) { revealMarkAsReadPill(source: .up)
} callback: {
dismissMarkAsReadPill() dismissMarkAsReadPill()
timelineContext.send(viewAction: .scrollToReadMarker) timelineContext.send(viewAction: .scrollToReadMarker)
} }