nayooti 5 年之前
父节点
当前提交
073cab2181
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      deltachat-ios/Helper/ThumbnailCache.swift

+ 2 - 3
deltachat-ios/Helper/ThumbnailCache.swift

@@ -12,12 +12,11 @@ class ThumbnailCache {
     }()
 
     func storeImage(image: UIImage, key: String){
-        // cache.setObject(image, forKey: NSString(string: key))
+        cache.setObject(image, forKey: NSString(string: key))
     }
 
     func restoreImage(key: String) -> UIImage? {
-        return nil
-        //     return cache.object(forKey: NSString(string: key))
+        return cache.object(forKey: NSString(string: key))
     }
 
     func clearCache() {