1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Fix: Fix issue with revisions being needlessly created when decrypting notes

This commit is contained in:
Laurent Cozic
2019-05-28 18:10:21 +01:00
parent 6d7511efbb
commit 04c6579f2c
5 changed files with 43 additions and 4 deletions

View File

@ -118,10 +118,11 @@ class RevisionService extends BaseService {
FROM item_changes
WHERE item_type = ?
AND source != ?
AND source != ?
AND id > ?
ORDER BY id ASC
LIMIT 10
`, [BaseModel.TYPE_NOTE, ItemChange.SOURCE_SYNC, Setting.value('revisionService.lastProcessedChangeId')]);
`, [BaseModel.TYPE_NOTE, ItemChange.SOURCE_SYNC, ItemChange.SOURCE_DECRYPTION, Setting.value('revisionService.lastProcessedChangeId')]);
if (!changes.length) break;