[GH-ISSUE #111] Calling of client.getProfilePicUrl slows down sync #27

Closed
opened 2026-02-27 04:58:47 +03:00 by kerem · 1 comment
Owner

Originally created by @guyzyl on GitHub (Jul 28, 2023).
Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/111

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.

Originally created by @guyzyl on GitHub (Jul 28, 2023). Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/111 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.
kerem 2026-02-27 04:58:47 +03:00
Author
Owner

@guyzyl commented on GitHub (Jul 28, 2023):

Duplicate of #104 (oops)

<!-- gh-comment-id:1655594127 --> @guyzyl commented on GitHub (Jul 28, 2023): Duplicate of #104 (oops)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whatsapp-contact-sync#27
No description provided.