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
handle conflicted note
ammarahm-edc97f669e0105
diff --git a/apps/mobile/src/components/MergeEditor/index.js b/apps/mobile/src/components/MergeEditor/index.jsindex 2516ea1b9..e3231e9ce 100644--- a/apps/mobile/src/components/MergeEditor/index.js+++ b/apps/mobile/src/components/MergeEditor/index.js@@ -152,6 +152,7 @@ const MergeEditor = () => {delta: primaryDelta,},id: note.id,+ conflicted: false,});} else if (keepContentFrom === 'secondary') {await db.notes.add({@@ -160,6 +161,7 @@ const MergeEditor = () => {delta: secondaryDelta,},id: note.id,+ conflicted: false,});}@@ -189,7 +191,7 @@ const MergeEditor = () => {const show = async item => {note = item;primaryDelta = await db.notes.note(note.id).delta();- secondaryDelta = await db.notes.note(note.id).delta();+ secondaryDelta = await db.notes.note(note.id).delta().conflicted;setVisible(true);postMessageToPrimaryWebView({type: 'delta',diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex 0a8522d8d..1599f381c 100644--- a/apps/mobile/src/components/NoteItem/index.js+++ b/apps/mobile/src/components/NoteItem/index.js@@ -86,8 +86,11 @@ export default class NoteItem extends React.Component {activeOpacity={0.8}onLongPress={() => onLongPress()}onPress={() => {- eSendEvent(eShowMergeDialog, item);- return;+ if (item.conflicted) {+ eSendEvent(eShowMergeDialog, item);++ return;+ }if (this.props.selectionMode) {this.props.onLongPress();return;