guyzyl / whatsapp-contact-sync

Easy way to sync between the contact photos on WhatsApp to Google Contacts
https://whasync.com/
Other
190 stars 23 forks source link

Calling of `client.getProfilePicUrl` slows down sync #111

Closed guyzyl closed 1 year ago

guyzyl commented 1 year ago

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.

guyzyl commented 1 year ago

Duplicate of #104 (oops)