فهرست منبع

also do not crash in debug mode if an image cannot be loaded, may be corrupted, whatnot. it is pretty already, if one wants to investigate, it is easier that way

B. Petersen 2 سال پیش
والد
کامیت
8e5034f941
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      deltachat-ios/Controller/ContextMenuController.swift
  2. 1 1
      deltachat-ios/Model/GalleryItem.swift

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

@@ -74,7 +74,6 @@ class ContextMenuController: UIViewController {
 
     private func makeImageView(image: UIImage?) -> UIView? {
         guard let image = image else {
-            safe_fatalError("unexpected nil value")
             return nil
         }
 

+ 1 - 1
deltachat-ios/Model/GalleryItem.swift

@@ -70,7 +70,7 @@ class GalleryItem: ContextMenuItem {
         case .webxdc:
             loadWebxdcThumbnail(from: msg)
         default:
-            safe_fatalError("unsupported viewtype - viewtype \(viewtype) not supported.")
+            return
         }
     }