correctly respect label @disableVersioning

This commit is contained in:
zadam
2019-12-02 20:21:52 +01:00
parent 2595c3ac31
commit dc063983ea
3 changed files with 5 additions and 8 deletions

View File

@@ -317,8 +317,7 @@ async function saveLinks(note, content) {
}
async function saveNoteRevision(note) {
// files and images are immutable, they can't be updated
// but we don't even version titles which is probably not correct
// files and images are versioned separately
if (note.type === 'file' || note.type === 'image' || await note.hasLabel('disableVersioning')) {
return;
}