Skip to content

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

update list on closing editor

Ammar Ahmed222b17e3b546
diff --git a/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts b/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts
index d78189f88..ee09b8ac2 100644
--- a/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts
+++ b/apps/mobile/src/screens/editor/tiptap/useEditorEvents.ts
@@ -154,7 +154,12 @@ export const useEditorEvents = (
editorState().movedAway = true;
tabBarRef.current?.goToPage(0);
}
- setImmediate(() => useEditorStore.getState().setCurrentlyEditingNote(null));
+ setImmediate(() => {
+ useEditorStore.getState().setCurrentlyEditingNote(null);
+ setTimeout(() => {
+ Navigation.queueRoutesForUpdate('ColoredNotes', 'Notes', 'TaggedNotes', 'TopicNotes');
+ }, 500);
+ });
editorState().currentlyEditing = false;
editor.reset();
}, 1);