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

All: Handling of unsyncable items

This commit is contained in:
Laurent Cozic
2017-12-05 18:56:39 +00:00
parent 4d5c4b1743
commit c703521b6c
10 changed files with 189 additions and 53 deletions

View File

@@ -253,8 +253,9 @@ class Synchronizer {
this.logSyncOperation(action, local, remote, reason);
async function handleCannotSyncItem(syncTargetId, item, cannotSyncReason) {
const handleCannotSyncItem = async (syncTargetId, item, cannotSyncReason) => {
await ItemClass.saveSyncDisabled(syncTargetId, item, cannotSyncReason);
this.dispatch({ type: 'SYNC_HAS_DISABLED_SYNC_ITEMS' });
}
if (local.type_ == BaseModel.TYPE_RESOURCE && (action == 'createRemote' || (action == 'itemConflict' && remote))) {