浏览代码

Fix version check for decrypting collection path

vishnukvmd 2 年之前
父节点
当前提交
7c932ca533
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/services/collections_service.dart

+ 1 - 1
lib/services/collections_service.dart

@@ -1133,7 +1133,7 @@ class CollectionsService {
   }
 
   String decryptCollectionPath(Collection collection) {
-    final key = collection.attributes.version == 1
+    final key = collection.attributes.version! >= 1
         ? getCollectionKey(collection.id)
         : _config.getKey();
     return utf8.decode(