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
fix opening note from vault dialog
ammarahm-ed388571e373c6
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.jsindex 59a6466df..3fb23a53c 100644--- a/apps/mobile/src/components/VaultDialog/index.js+++ b/apps/mobile/src/components/VaultDialog/index.js@@ -9,6 +9,9 @@ import NavigationService from '../../services/NavigationService';import {updateEvent} from '../DialogManager';import Share from 'react-native-share';+import {eSendEvent} from '../../services/eventManager';+import {eOnLoadNote} from '../../services/events';+import {openEditorAnimation} from '../../utils/animations';export class VaultDialog extends Component {constructor(props) {@@ -52,15 +55,16 @@ export class VaultDialog extends Component {item = n;}if (!this.props.perm) {- NavigationService.navigate('Editor', {- note: item,- });+ eSendEvent(eOnLoadNote, item);+ if (!DDS.isTab) {+ openEditorAnimation();+ }}this.close(this.props.shareAfterUnlock, item);} else {await db.notes.note(this.props.note.id).lock('password');- this.close(false, item);+ this.close(false, this.props.note);}};