mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
detect existing attachment in target note
This commit is contained in:
@@ -21,7 +21,13 @@ async function processEntityChanges(entityChanges) {
|
||||
} else if (ec.entityName === 'note_reordering') {
|
||||
processNoteReordering(loadResults, ec);
|
||||
} else if (ec.entityName === 'blobs') {
|
||||
delete froca.blobPromises[ec.entityId];
|
||||
for (const affectedNoteId of ec.noteIds) {
|
||||
for (const key of Object.keys(froca.blobPromises)) {
|
||||
if (key.includes(affectedNoteId)) {
|
||||
delete froca.blobPromises[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
loadResults.addNoteContent(ec.noteIds, ec.componentId);
|
||||
} else if (ec.entityName === 'note_revisions') {
|
||||
|
||||
Reference in New Issue
Block a user