diff --git a/deltachat-ios/Controller/ContactDetailViewController.swift b/deltachat-ios/Controller/ContactDetailViewController.swift index 8378626f2..acf988489 100644 --- a/deltachat-ios/Controller/ContactDetailViewController.swift +++ b/deltachat-ios/Controller/ContactDetailViewController.swift @@ -244,7 +244,6 @@ class ContactDetailViewController: UITableViewController { case .deleteChat: return deleteChatCell case .addToHomescreen: - // only relevant for iOS 15 return homescreenWidgetCell } case .sharedChats: @@ -403,7 +402,6 @@ class ContactDetailViewController: UITableViewController { tableView.deselectRow(at: indexPath, animated: false) showDeleteChatConfirmationAlert() case .addToHomescreen: - // only relevant for iOS 15 tableView.deselectRow(at: indexPath, animated: true) toggleChatInHomescreenWidget() } diff --git a/deltachat-ios/Controller/GroupChatDetailViewController.swift b/deltachat-ios/Controller/GroupChatDetailViewController.swift index 26ccb8680..dca1db71e 100644 --- a/deltachat-ios/Controller/GroupChatDetailViewController.swift +++ b/deltachat-ios/Controller/GroupChatDetailViewController.swift @@ -583,7 +583,6 @@ extension GroupChatDetailViewController: UITableViewDelegate, UITableViewDataSou case .copyToClipboard: return copyToClipboardCell case .addToHomescreen: - // relevant only for iOS 15+ return homescreenWidgetCell } } diff --git a/deltachat-ios/ViewModel/ContactDetailViewModel.swift b/deltachat-ios/ViewModel/ContactDetailViewModel.swift index 0cd63039c..bb4ae6b7b 100644 --- a/deltachat-ios/ViewModel/ContactDetailViewModel.swift +++ b/deltachat-ios/ViewModel/ContactDetailViewModel.swift @@ -101,7 +101,7 @@ class ContactDetailViewModel { } chatActions = [.archiveChat] - if #available(iOS 15, *) { + if #available(iOS 17, *) { chatActions.append(.addToHomescreen) } if !isDeviceTalk && !isSavedMessages {