Fix guid being replaced when updating note

This commit is contained in:
RumovZ 2022-06-06 10:04:31 +02:00
parent 43905902d0
commit 1e17435335

View file

@ -274,6 +274,7 @@ impl<'a> Context<'a> {
log: &mut NoteLog,
) -> Result<()> {
ctx.note.id = dupe.id;
ctx.note.guid = dupe.guid.clone();
if dupe.equal_fields_and_tags(&ctx.note) {
log.duplicate.push(dupe.into_log_note());
} else {