mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	refactoring for archived notes handling in note cache
This commit is contained in:
		| @@ -177,7 +177,7 @@ function getNotePath(noteId) { | ||||
| function evaluateSimilarity(sourceNote, candidateNote, results) { | ||||
|     let coeff = stringSimilarity.compareTwoStrings(sourceNote.flatText, candidateNote.flatText); | ||||
|  | ||||
|     if (coeff > 0.4) { | ||||
|     if (coeff > 0.5) { | ||||
|         const notePath = getSomePath(candidateNote); | ||||
|  | ||||
|         // this takes care of note hoisting | ||||
| @@ -214,7 +214,7 @@ function findSimilarNotes(noteId) { | ||||
|     } | ||||
|  | ||||
|     for (const note of Object.values(noteCache.notes)) { | ||||
|         if (note.isProtected && !note.isDecrypted) { | ||||
|         if (note.noteId === origNote.noteId) { | ||||
|             continue; | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user