diff --git a/src/Collections/CollectionEdit.tsx b/src/Collections/CollectionEdit.tsx index 7b0d6f7..27ffb86 100644 --- a/src/Collections/CollectionEdit.tsx +++ b/src/Collections/CollectionEdit.tsx @@ -91,7 +91,8 @@ export default function CollectionEdit(props: PropsType) { } const colMgr = getCollectionManager(etebase); - const meta = { ...info, color }; + const mtime = (new Date()).getTime(); + const meta = { ...info, color, mtime }; let collection; if (props.collection) { collection = props.collection.collection; diff --git a/src/Collections/Main.tsx b/src/Collections/Main.tsx index 9ff2abb..edd375c 100644 --- a/src/Collections/Main.tsx +++ b/src/Collections/Main.tsx @@ -54,6 +54,9 @@ export default function CollectionsMain() { async function onDelete(collection: Etebase.Collection) { const colMgr = getCollectionManager(etebase); + const mtime = (new Date()).getTime(); + const meta = await collection.getMeta(); + await collection.setMeta({ ...meta, mtime }); await collection.delete(true); await dispatch(collectionUpload(colMgr, collection));