Skip to content

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

remove timer

ammarahm-edadd0c1ae3522
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 36296ea11..a43c0b520 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -158,6 +158,8 @@ let currentEditingTimer = null;
export async function loadNote(item) {
editing.currentlyEditing = true;
post('blur');
+
+
if (item && item.type === 'new') {
intent = false;
await clearEditor();
@@ -190,9 +192,8 @@ export async function loadNote(item) {
if (webviewInit) {
await loadNoteInEditor();
}
- currentEditingTimer = setTimeout(() => {
- updateEvent({type: Actions.CURRENT_EDITING_NOTE, id: item.id});
- }, 500);
+ updateEvent({type: Actions.CURRENT_EDITING_NOTE, id: item.id});
+
}
}