Browse Source

remove unwanted vibration feedback (#1627)

bjoern 2 years ago
parent
commit
46803acfa7

+ 1 - 0
deltachat-ios/Controller/ChatListController.swift

@@ -770,6 +770,7 @@ extension ChatListController: ContactCellDelegate {
            !searchActive,
            !RelayHelper.shared.isForwarding(),
            !tableView.isEditing {
+            UIImpactFeedbackGenerator(style: .medium).impactOccurred()
             setLongTapEditing(true, initialIndexPath: [indexPath])
             tableView.selectRow(at: indexPath, animated: true, scrollPosition: .none)
         }

+ 0 - 2
deltachat-ios/View/ContactCell.swift

@@ -219,8 +219,6 @@ class ContactCell: UITableViewCell {
         if sender.state == UIGestureRecognizer.State.began,
            let tableView = self.superview as? UITableView,
            let indexPath = tableView.indexPath(for: self) {
-            let generator = UIImpactFeedbackGenerator(style: .medium)
-            generator.impactOccurred()
             delegate?.onLongTap(at: indexPath)
         }
     }