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: remove pin limit
ammarahm-ede3820b3e1227
diff --git a/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js b/apps/mobile/app/components/list-items/selection-wrapper/action-strip.jsindex 023738a7b..0c56e15a8 100644--- a/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js+++ b/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js@@ -69,22 +69,8 @@ export const ActionStrip = ({ note, setActionStrip }) => {if (!note.id) return;if (note.type === "note") {- if (db.notes.pinned.length === 3 && !note.pinned) {- ToastEvent.show({- heading: "Cannot pin more than 3 notes",- type: "error"- });- return;- }await db.notes.note(note.id).pin();} else {- if (db.notebooks.pinned.length === 3 && !note.pinned) {- ToastEvent.show({- heading: "Cannot pin more than 3 notebooks",- type: "error"- });- return;- }await db.notebooks.notebook(note.id).pin();setNotebooks();}diff --git a/apps/mobile/app/hooks/use-actions.js b/apps/mobile/app/hooks/use-actions.jsindex 50e175508..bb780dee3 100644--- a/apps/mobile/app/hooks/use-actions.js+++ b/apps/mobile/app/hooks/use-actions.js@@ -151,13 +151,6 @@ export const useActions = ({ close = () => null, item }) => {if (!item.id) return;close();let type = item.type;- if (db[`${type}s`].pinned.length === 3 && !item.pinned) {- ToastEvent.show({- heading: `Cannot pin more than 3 ${type}s`,- type: "error"- });- return;- }await db[`${type}s`][type](item.id).pin();Navigation.queueRoutesForUpdate("TaggedNotes",