Forráskód Böngészése

cached collection before calling getCollectionKey

Abhinav-grd 4 éve
szülő
commit
c4e19c56cf
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      lib/services/collections_service.dart

+ 1 - 0
lib/services/collections_service.dart

@@ -313,6 +313,7 @@ class CollectionsService {
   }
 
   void _cacheCollectionAttributes(Collection collection) {
+    _collectionIDToCollections[collection.id] = collection;
     final updatedCollection = getCollectionWithDecryptedName(collection);
     if (collection.attributes.encryptedPath != null) {
       _localCollections[decryptCollectionPath(collection)] = updatedCollection;