fixes in recent changes and handling encrypted notes

This commit is contained in:
azivner
2017-11-04 11:32:05 -04:00
parent 44cfff09d9
commit ee07d2d2d8
3 changed files with 81 additions and 72 deletions

View File

@@ -32,14 +32,20 @@ function getFullName(noteId) {
return "[unknown]";
}
if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) {
// why?
if (note.data.is_clone) {
return null;
}
const path = [];
while (note) {
path.push(note.title);
if (note.data.encryption > 0 && !isEncryptionAvailable()) {
path.push("[encrypted]");
}
else {
path.push(note.title);
}
note = note.getParent();
}