mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-14 23:22:40 +00:00
避免trash的笔记一同步变成不是trash的了
This commit is contained in:
12
node_modules/note.js
generated
vendored
12
node_modules/note.js
generated
vendored
@@ -704,13 +704,19 @@ var Note = {
|
||||
note.InitSync = true; // 刚同步完, 表示content, images, attach没有同步
|
||||
note.IsDirty = false;
|
||||
note.LocalIsDelete = false;
|
||||
note.IsTrash = false;
|
||||
// 这里, 悲剧, 一个大BUG, 应该和server端IsTrash一致,
|
||||
// 不然同步的时候将IsTrash的笔记同步到非IsTrash, 2015/10/31 fixed 谢谢 3601提供的信息
|
||||
// note.IsTrash = false;
|
||||
if (typeof note.IsTrash == 'boolean') {
|
||||
note.IsTrash = note.IsTrash;
|
||||
}
|
||||
else {
|
||||
note.IsTrash = false;
|
||||
}
|
||||
|
||||
note.ServerNoteId = note.NoteId;
|
||||
note.NoteId = Common.objectId();
|
||||
|
||||
console.error('add note force' + note.Title + Common.goNowToDate(note.CreatedTime));
|
||||
|
||||
note.CreatedTime = Common.goNowToDate(note.CreatedTime);
|
||||
note.UpdatedTime = Common.goNowToDate(note.UpdatedTime);
|
||||
|
||||
|
Reference in New Issue
Block a user