Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bug 822968 - [CONTACTS][FACEBOOK] Company name is not updated in contact... #7088

Merged
merged 1 commit into from

2 participants

@crdlc
Collaborator

...s list until you enter in contact details [r=jmcanterafonseca]

@crdlc crdlc Bug 822968 - [CONTACTS][FACEBOOK] Company name is not updated in cont…
…acts list until you enter in contact details [r=jmcanterafonseca]
95f6ceb
@jmcanterafonseca
Collaborator

simple change, works perfectly, great job specially in spotting it as it was not easy to find !

@crdlc crdlc merged commit 487694d into mozilla-b2g:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 19, 2012
  1. @crdlc

    Bug 822968 - [CONTACTS][FACEBOOK] Company name is not updated in cont…

    crdlc authored
    …acts list until you enter in contact details [r=jmcanterafonseca]
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 apps/communications/facebook/js/fb_sync.js
View
7 apps/communications/facebook/js/fb_sync.js
@@ -377,6 +377,7 @@ if (!fb.sync) {
var toBeUpdated = {};
fb.utils.getLastUpdate(function import_updates(lastUpdate) {
+ var toBeChanged = 0;
var lastUpdateTime = Math.round(lastUpdate / 1000);
debug('Last update time: ', lastUpdateTime);
@@ -407,6 +408,7 @@ if (!fb.sync) {
}
else {
debug('Updating friend: ', friendData.uid);
+ toBeChanged++;
updateFbFriend(aContact.id, friendData);
}
}
@@ -416,6 +418,7 @@ if (!fb.sync) {
}
else {
debug('Removing friend: ', aContact.id);
+ toBeChanged++;
removeFbFriend(aContact.id);
}
});
@@ -426,7 +429,7 @@ if (!fb.sync) {
// worker
var toBeUpdatedList = Object.keys(toBeUpdated);
if (toBeUpdatedList.length > 0) {
- totalToChange = changed + toBeUpdatedList.length;
+ totalToChange = toBeChanged + toBeUpdatedList.length;
debug('Starting worker for updating img data');
startWorker();
@@ -444,7 +447,7 @@ if (!fb.sync) {
});
}
else {
- totalToChange = changed;
+ totalToChange = toBeChanged;
checkTotals();
}
});
Something went wrong with that request. Please try again.