Skip to content

Commit

Permalink
add separator above 'more options'
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Feb 6, 2025
1 parent 18e8476 commit 9194200
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,7 @@ extension ChatViewController {
guard let self else { return nil }
let message = dcContext.getMessage(id: messageId)
var children: [UIMenuElement] = []
var moreOptions: [UIMenuElement] = []
var preferredElementSizeSmall = false

if canReply(to: message) {
Expand Down Expand Up @@ -1967,11 +1968,11 @@ extension ChatViewController {
UIAction.menuAction(localizationKey: "delete", attributes: [.destructive], systemImageName: "trash", indexPath: indexPath, action: deleteSingle)
)

moreOptions.append(UIAction.menuAction(localizationKey: "select", systemImageName: "checkmark.circle", indexPath: indexPath, action: selectMore))

children.append(contentsOf: [
UIMenu(options: [.displayInline], children: [
UIMenu(title: String.localized("menu_more_options"), image: UIImage(systemName: "ellipsis.circle"), children: [
UIAction.menuAction(localizationKey: "select", systemImageName: "checkmark.circle", indexPath: indexPath, action: selectMore),
])
UIMenu(title: String.localized("menu_more_options"), image: UIImage(systemName: "ellipsis.circle"), children: moreOptions)
])
])

Expand Down

0 comments on commit 9194200

Please sign in to comment.