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 attachment syncing for all users (#671)

Evan Hutnik55a360417c11
diff --git a/rust/cloud-storage/email_service/src/pubsub/backfill/increment_counters.rs b/rust/cloud-storage/email_service/src/pubsub/backfill/increment_counters.rs
index dbebaf95be..8c5962a0d2 100644
--- a/rust/cloud-storage/email_service/src/pubsub/backfill/increment_counters.rs
+++ b/rust/cloud-storage/email_service/src/pubsub/backfill/increment_counters.rs
@@ -125,8 +125,7 @@ async fn handle_attachment_upload(
link: &Link,
job_id: Uuid,
) -> Result<(), ProcessingError> {
- // temporarily only enabling for macro emails for testing
- if !link.macro_id.as_ref().ends_with("@macro.com") || cfg!(not(feature = "attachment_upload")) {
+ if cfg!(not(feature = "attachment_upload")) {
return Ok(());
}
@@ -333,8 +332,7 @@ async fn handle_thread_attachment_upload(
job_id: Uuid,
thread_db_id: Uuid,
) -> Result<(), ProcessingError> {
- // temporarily only for macro emails, for testing
- if !link.macro_id.as_ref().ends_with("@macro.com") || cfg!(not(feature = "attachment_upload")) {
+ if cfg!(not(feature = "attachment_upload")) {
return Ok(());
}
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 a766ab16a7..304c8e8bfc 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
@@ -212,11 +212,7 @@ async fn handle_attachment_upload(
payload: &UpsertMessagePayload,
message_attachment_count: usize,
) -> result::Result<(), ProcessingError> {
- // temporarily only for macro emails, for testing purposes
- if !link.macro_id.0.as_ref().ends_with("@macro.com")
- || cfg!(not(feature = "attachment_upload"))
- || message_attachment_count == 0
- {
+ if cfg!(not(feature = "attachment_upload")) || message_attachment_count == 0 {
return Ok(());
}