Browse Source

Fix version check for decrypting collection path

vishnukvmd 2 năm trước cách đây
mục cha
commit
7c932ca533
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(