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: disable template when pin note to notifications
Ammar Ahmedc02f1cde166a
diff --git a/apps/mobile/app/components/dialogs/vault/index.js b/apps/mobile/app/components/dialogs/vault/index.jsindex d1fb90e2a..d578fd3de 100644--- a/apps/mobile/app/components/dialogs/vault/index.js+++ b/apps/mobile/app/components/dialogs/vault/index.js@@ -586,7 +586,7 @@ export class VaultDialog extends Component {}async _copyNote(note) {- Clipboard.setString(await convertNoteToText(note));+ Clipboard.setString((await convertNoteToText(note, true)) || "");ToastManager.show({heading: "Note copied",type: "success",@@ -602,7 +602,7 @@ export class VaultDialog extends Component {await Share.open({heading: "Share note",failOnCancel: false,- message: await convertNoteToText(note)+ message: (await convertNoteToText(note)) || ""});} catch (e) {console.error(e);diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsxindex 644eacb5f..b8067419e 100644--- a/apps/mobile/app/hooks/use-actions.tsx+++ b/apps/mobile/app/hooks/use-actions.tsx@@ -600,7 +600,7 @@ export const useActions = ({});return;}- const text = await convertNoteToText(item as Note, false);+ const text = await convertNoteToText(item as Note, true);const html = (text || "").replace(/\n/g, "<br />");await Notifications.displayNotification({title: item.title,@@ -679,7 +679,7 @@ export const useActions = ({Share.open({title: "Share note to",failOnCancel: false,- message: [item.title, "\n\n", convertedText || ""].join("\n")+ message: convertedText || ""});}}diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.tsindex fb95fcd5d..498d72602 100644--- a/apps/mobile/app/services/notifications.ts+++ b/apps/mobile/app/services/notifications.ts@@ -952,13 +952,13 @@ async function pinNote(id: string) {const note = await db.notes.note(id as string);if (!note) return;- let text = await convertNoteToText(note, false);+ let text = await convertNoteToText(note, true);if (!text) text = "";const html = text.replace(/\n/g, "<br />");Notifications.displayNotification({title: note.title,message: note.headline || text,- subtitle: note.headline || text,+ subtitle: "",bigText: html,ongoing: true,actions: ["UNPIN"],