Skip to content

Commit cde4c91

Browse files
committed
fix: Simplify Control group
1 parent 87f4035 commit cde4c91

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Mail/Views/Thread List/ThreadListCellContextMenu.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,12 @@ struct ThreadListCellContextMenu: ViewModifier {
7171
)
7272
}
7373

74-
private var controlGroupActions: [Action] {
75-
if actions.quickActions.isEmpty {
76-
return actions.bottomBarActions
77-
} else {
78-
return actions.quickActions
79-
}
80-
}
81-
8274
func body(content: Content) -> some View {
8375
content
8476
.contextMenu {
8577
ControlGroup {
8678
ActionButtonForEach(
87-
actions: controlGroupActions,
79+
actions: actions.bottomBarActions,
8880
messages: thread.messages.toArray(),
8981
thread: thread,
9082
origin: origin,

0 commit comments

Comments
 (0)