瀏覽代碼

cached collection before calling getCollectionKey

Abhinav-grd 4 年之前
父節點
當前提交
c4e19c56cf
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;