WebAPI/DataStore: Difference between revisions

Jump to navigation Jump to search
Line 179: Line 179:
      
      
     stores[0].getChanges(revisionId).then(function(delta) {
     stores[0].getChanges(revisionId).then(function(delta) {
       // TODO
       if (revisionId == delta.revisionId) {
        // Nothing changed
      } else {
        dump("We lost: " + delta.removedIds + " contacts, but " + delta.addedIds + " have been added!\n");
        revisionId = delta.revisionId; // To store, somewhere.
      }
     });
     });
   });
   });
Confirmed users
53

edits

Navigation menu