Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(email-service): Enable contacts syncing (#467)

Evan Hutnik391d640bc0c7
diff --git a/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs b/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs
index 887877e56d..68e8fe861c 100644
--- a/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs
+++ b/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs
@@ -247,7 +247,7 @@ async fn handle_contacts_sync(
provider_message_id: &str,
) -> result::Result<(), ProcessingError> {
// if the user sent the message, upsert contacts for its recipients in contacts-service.
- if cfg!(feature = "contacts_sync") || !is_sent || recipient_emails.is_empty() {
+ if cfg!(not(feature = "contacts_sync")) || !is_sent || recipient_emails.is_empty() {
return Ok(());
}