Merge branch 'main' into menuitem_states

This commit is contained in:
ashilkn 2023-02-01 18:50:31 +05:30
commit 3de7a6b051
2 changed files with 5 additions and 2 deletions

View file

@ -159,6 +159,8 @@ class CollectionsService {
void clearCache() {
_localPathToCollectionID.clear();
_collectionIDToCollections.clear();
cachedDefaultHiddenCollection = null;
cachedUncategorizedCollection = null;
_cachedKeys.clear();
}

View file

@ -294,8 +294,9 @@ class CollectionActions {
await moveFilesFromCurrentCollection(bContext, collection, files);
// collection should be empty on server now
await collectionsService.trashEmptyCollection(collection);
} catch (e) {
logger.severe("Failed to keep photos and delete collection", e);
} catch (e, s) {
logger.severe(
"Failed to keep photos and delete collection", e, s);
rethrow;
}
},