mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
update version history from extension
This commit is contained in:
@@ -290,6 +290,7 @@ const NotesnookShare = ({quicknote = false}) => {
|
||||
await db.init();
|
||||
await db.notes.init();
|
||||
|
||||
|
||||
if (appendNote && !db.notes.note(appendNote.id)) {
|
||||
useShareStore.getState().setAppendNote(null);
|
||||
Alert.alert('The note you are trying to append to has been deleted.');
|
||||
@@ -304,11 +305,13 @@ const NotesnookShare = ({quicknote = false}) => {
|
||||
data: raw.data + '\n' + content,
|
||||
type: 'tiny'
|
||||
},
|
||||
id: appendNote.id
|
||||
id: appendNote.id,
|
||||
sessionId:Date.now()
|
||||
};
|
||||
} else {
|
||||
_note = {...note};
|
||||
_note.content.data = content;
|
||||
_note.sessionId = Date.now();
|
||||
}
|
||||
await db.notes.add(_note);
|
||||
await Storage.write('notesAddedFromIntent', 'added');
|
||||
|
||||
Reference in New Issue
Block a user