A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: daily trash cleanup
Ammar Ahmed823608cca125
diff --git a/apps/mobile/app/screens/settings/picker/pickers.jsx b/apps/mobile/app/screens/settings/picker/pickers.jsxindex 80d9ff284..8a0bb3a0c 100644--- a/apps/mobile/app/screens/settings/picker/pickers.jsx+++ b/apps/mobile/app/screens/settings/picker/pickers.jsx@@ -69,10 +69,10 @@ export const TrashIntervalPicker = createSettingsPicker({db.settings.setTrashCleanupInterval(item);},formatValue: (item) => {- return item === -1 ? "Never" : item + " days";+ return item === -1 ? "Never" : item === 1 ? "Daily" : item + " days";},getItemKey: (item) => item.toString(),- options: [-1, 7, 30, 365],+ options: [-1, 1, 7, 30, 365],compareValue: (current, item) => current === item,premium: true});diff --git a/apps/mobile/app/screens/trash/index.tsx b/apps/mobile/app/screens/trash/index.tsxindex 9e4ebca38..b61eb4180 100644--- a/apps/mobile/app/screens/trash/index.tsx+++ b/apps/mobile/app/screens/trash/index.tsx@@ -65,7 +65,11 @@ const PLACEHOLDER_DATA = (trashCleanupInterval = 7) => ({paragraph:trashCleanupInterval === -1? "Set automatic trash cleanup interval from Settings > Behaviour > Clean trash interval."- : `Items in the trash will be permanently deleted after after ${trashCleanupInterval} days.`,+ : `Trash gets automatically cleaned up ${+ trashCleanupInterval === 1+ ? "daily."+ : `after ${trashCleanupInterval} days.`+ }`,button: null,loading: "Loading trash items"});