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

All: Improved: Make sure user timestamp is preserved with revision information

This commit is contained in:
Laurent Cozic
2019-05-07 22:15:47 +01:00
parent c400142996
commit 52a2daddbf
2 changed files with 22 additions and 2 deletions

View File

@ -62,8 +62,8 @@ class RevisionService extends BaseService {
if (!!rev.body_diff) return false;
const md = JSON.parse(rev.metadata_diff);
if (md.new && md.new.length) return false;
if (md.deleted && md.deleted.length) return false;
if (md.new && Object.keys(md.new).length) return false;
if (md.deleted && Object.keys(md.deleted).length) return false;
return true;
}