Skip to content

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

fix new note not created from inside a topic if a note is already opened

ammarahm-ed05a9019c69b3
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index 5a364128a..673b90dae 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -82,7 +82,7 @@ export const Home = ({navigation}) => {
if (!DDS.isTab) {
if (getNote()) {
eSendEvent(eOnLoadNote, {type: 'new'});
- editing.currentlyEditing;
+ editing.currentlyEditing = true;
editing.movedAway = false;
}
tabBarRef.current?.goToPage(1);
diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.js
index 0ca882f80..fb8049c59 100644
--- a/apps/mobile/src/views/Notes/index.js
+++ b/apps/mobile/src/views/Notes/index.js
@@ -24,6 +24,7 @@ import {
} from '../../utils/Events';
import {openLinkInBrowser} from '../../utils/functions';
import {tabBarRef} from '../../utils/Refs';
+import { getNote } from '../Editor/Functions';
const getNotes = params => {
if (!params) return [];
@@ -165,6 +166,11 @@ export const Notes = ({route, navigation}) => {
}
setActionAfterFirstSave();
if (!DDS.isTab) {
+ if (getNote()) {
+ eSendEvent(eOnLoadNote, {type: 'new'});
+ editing.currentlyEditing = true;
+ editing.movedAway = false;
+ }
tabBarRef.current?.goToPage(1);
} else {
eSendEvent(eOnLoadNote, {type: 'new'});