Browse Source

cached collection before calling getCollectionKey

Abhinav-grd 4 years ago
parent
commit
c4e19c56cf
1 changed files with 1 additions and 0 deletions
  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) {
   void _cacheCollectionAttributes(Collection collection) {
+    _collectionIDToCollections[collection.id] = collection;
     final updatedCollection = getCollectionWithDecryptedName(collection);
     final updatedCollection = getCollectionWithDecryptedName(collection);
     if (collection.attributes.encryptedPath != null) {
     if (collection.attributes.encryptedPath != null) {
       _localCollections[decryptCollectionPath(collection)] = updatedCollection;
       _localCollections[decryptCollectionPath(collection)] = updatedCollection;