remove "hide included images" feature since with attachments it's no longer necessary

This commit is contained in:
zadam
2023-03-24 09:17:17 +01:00
parent 5cc5859211
commit 0b270ee87a
6 changed files with 4 additions and 31 deletions

View File

@@ -490,13 +490,6 @@ class FNote {
return;
}
if (options.is("hideIncludedImages_main")) {
const imageLinks = this.getRelations('imageLink');
// image is already visible in the parent note so no need to display it separately in the book
childBranches = childBranches.filter(branch => !imageLinks.find(rel => rel.value === branch.noteId));
}
// we're not checking hideArchivedNotes since that would mean we need to lazy load the child notes
// which would seriously slow down everything.
// we check this flag only once user chooses to expand the parent. This has the negative consequence that