mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +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() {
|
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user