Browse Source

Fix version check for decrypting collection path

vishnukvmd 2 years ago
parent
commit
7c932ca533
1 changed files with 1 additions and 1 deletions
  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(