Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(email): sync profile photos for Gmail other contacts (#3752)
gbirman69de65cedace
diff --git a/rust/cloud-storage/gmail_client/src/contacts.rs b/rust/cloud-storage/gmail_client/src/contacts.rsindex 7c010f5053..3651087675 100644--- a/rust/cloud-storage/gmail_client/src/contacts.rs+++ b/rust/cloud-storage/gmail_client/src/contacts.rs@@ -125,16 +125,18 @@ pub(crate) async fn list_other_contacts(let http_client = client.inner.clone();// Determine the base URL based on whether this is a full or incremental sync.+ // Request the PROFILE source alongside CONTACT: the default CONTACT-only source+ // returns no photos for "other contacts", so profile photos require PROFILE.let base_url = if let Some(token) = sync_token {// Incremental sync: Use syncToken, omit pageSizeformat!(- "{}/otherContacts?readMask=names,emailAddresses,photos&requestSyncToken=true&syncToken={}",+ "{}/otherContacts?readMask=names,emailAddresses,photos&sources=READ_SOURCE_TYPE_CONTACT&sources=READ_SOURCE_TYPE_PROFILE&requestSyncToken=true&syncToken={}",client.contacts_url, token)} else {// Full sync: Use pageSizeformat!(- "{}/otherContacts?readMask=names,emailAddresses,photos&pageSize=1000&requestSyncToken=true",+ "{}/otherContacts?readMask=names,emailAddresses,photos&sources=READ_SOURCE_TYPE_CONTACT&sources=READ_SOURCE_TYPE_PROFILE&pageSize=1000&requestSyncToken=true",client.contacts_url)};