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
do not allow regular users to use vault
ammarahm-ed8cfed89e0235
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 925f5e0ef..353bc3841 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -470,35 +470,34 @@ export const ActionSheetComponent = ({};const onPressVaultButton = async () => {- if (!note.id) return;-- if (note.locked) {- close('unlock');- } else {- db.vault- .add(note.id)- .then(() => {- sendNoteEditedEvent(note.id, false, true);- close();- })- .catch(async (e) => {- switch (e.message) {- case db.vault.ERRORS.noVault:- close('novault');- break;- case db.vault.ERRORS.vaultLocked:- close('locked');- break;- case db.vault.ERRORS.wrongPassword:- close();- break;- }- });- }-- return;await PremiumService.verify(- () => {},+ () => {+ if (!note.id) return;++ if (note.locked) {+ close('unlock');+ } else {+ db.vault+ .add(note.id)+ .then(() => {+ sendNoteEditedEvent(note.id, false, true);+ close();+ })+ .catch(async (e) => {+ switch (e.message) {+ case db.vault.ERRORS.noVault:+ close('novault');+ break;+ case db.vault.ERRORS.vaultLocked:+ close('locked');+ break;+ case db.vault.ERRORS.wrongPassword:+ close();+ break;+ }+ });+ }+ },() => {eSendEvent(eShowGetPremium, {context: 'sheet',