浏览代码

don't open preview on after context menu closed

cyberta 4 年之前
父节点
当前提交
00773565f7
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      deltachat-ios/Controller/GalleryViewController.swift

+ 0 - 7
deltachat-ios/Controller/GalleryViewController.swift

@@ -254,13 +254,6 @@ extension GalleryViewController: UICollectionViewDataSource, UICollectionViewDel
             }
         )
     }
-
-    @available(iOS 13, *)
-    func collectionView(_ collectionView: UICollectionView, willEndContextMenuInteraction configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating?) {
-        if let msgId = (animator?.previewViewController as? ContextMenuController)?.msg.id {
-            self.showPreview(msgId: msgId)
-        }
-    }
 }
 
 // MARK: - grid layout + updates