Skip to content

Commit

Permalink
remove 'share' from primary webxdc menu
Browse files Browse the repository at this point in the history
it is not an action that is useful during usage (as 'add to widget'),
and if, 'forward' should also be there.
instead, just point to 'show in chat'
where meanwhile both are available (which was not always the case)
  • Loading branch information
r10s committed Jan 24, 2025
1 parent 52b88ab commit 26c8499
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions deltachat-ios/Controller/WebxdcViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,6 @@ class WebxdcViewController: WebViewViewController {
appDelegate.appCoordinator.showChat(chatId: message.chatId, msgId: message.id, animated: true, clearViewControllerStack: true)
}
})
actions.append(UIAction(title: String.localized("menu_share"), image: UIImage(systemName: "square.and.arrow.up")) { [weak self] _ in
self?.shareWebxdc()
})
if sourceCodeUrl != nil {
actions.append(UIMenu(options: [.displayInline],
children: [
Expand Down Expand Up @@ -486,10 +483,6 @@ class WebxdcViewController: WebViewViewController {
UIApplication.shared.open(url)
}
}

private func shareWebxdc() {
Utils.share(message: dcContext.getMessage(id: messageId), parentViewController: self, sourceItem: navigationItem.rightBarButtonItem)
}
}

extension WebxdcViewController: WKScriptMessageHandler {
Expand Down

0 comments on commit 26c8499

Please sign in to comment.