When syncing, for every match between a Google and a WhatsApp contact the whatsapp.downloadFile function is called.
Within it, the function getProfilePicUrl is called to get the URL of the profile picture of the user.
The problem is that not all contacts have a profile pic, so calling getProfilePicUrl (takes ~1 second) is a waste of time and slows down the whole sync process.
Need to find a way to improve this step of the sync process.
When syncing, for every match between a Google and a WhatsApp contact the
whatsapp.downloadFile
function is called. Within it, the functiongetProfilePicUrl
is called to get the URL of the profile picture of the user.The problem is that not all contacts have a profile pic, so calling
getProfilePicUrl
(takes ~1 second) is a waste of time and slows down the whole sync process. Need to find a way to improve this step of the sync process.