cached collection before calling getCollectionKey

This commit is contained in:
Abhinav-grd 2021-01-24 19:36:19 +05:30
parent b5f05b0afd
commit c4e19c56cf

View file

@ -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;