mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Fix small multiple_closures_with_trailing_closure warning
This commit is contained in:
@@ -170,13 +170,14 @@ struct RoomScreen: View {
|
||||
private func onViewAllKnockRequests() {
|
||||
context.send(viewAction: .viewKnockRequests)
|
||||
}
|
||||
|
||||
|
||||
@ViewBuilder
|
||||
private var jumpToReadMarkerButton: some View {
|
||||
if timelineContext.viewState.shouldShowJumpToReadMarker {
|
||||
TimelineScrollButton(direction: .up,
|
||||
showsBadge: true,
|
||||
onLongPress: { revealMarkAsReadPill(source: .up) }) {
|
||||
showsBadge: true) {
|
||||
revealMarkAsReadPill(source: .up)
|
||||
} callback: {
|
||||
dismissMarkAsReadPill()
|
||||
timelineContext.send(viewAction: .scrollToReadMarker)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user