Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

disable auto removal of notes

ammarahm-eda03931d32099
diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.js
index 61cc2960c..24aac0bff 100644
--- a/apps/mobile/src/views/Editor/EditorHeader.js
+++ b/apps/mobile/src/views/Editor/EditorHeader.js
@@ -191,16 +191,17 @@ const EditorHeader = () => {
const onNoteRemoved = async id => {
try {
- console.log('NOTE REMOVED', id);
- await db.notes.remove(id);
- if (id !== getNote().id) return;
- Navigation.setRoutesToUpdate([
- Navigation.routeNames.Favorites,
- Navigation.routeNames.Notes,
- Navigation.routeNames.NotesPage,
- Navigation.routeNames.Trash,
- Navigation.routeNames.Notebook
- ]);
+ return;
+ // console.log('NOTE REMOVED', id);
+ // await db.notes.remove(id);
+ // if (id !== getNote().id) return;
+ // Navigation.setRoutesToUpdate([
+ // Navigation.routeNames.Favorites,
+ // Navigation.routeNames.Notes,
+ // Navigation.routeNames.NotesPage,
+ // Navigation.routeNames.Trash,
+ // Navigation.routeNames.Notebook
+ // ]);
} catch (e) {}
};