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.

soup: fix client noise filter logic filtering out non-email entities (#519)

Caleb Taylor563fc66f5430
diff --git a/js/app/packages/app/component/soupFilters.ts b/js/app/packages/app/component/soupFilters.ts
index f751d3e3f2..3ea7826a07 100644
--- a/js/app/packages/app/component/soupFilters.ts
+++ b/js/app/packages/app/component/soupFilters.ts
@@ -237,5 +237,8 @@ export const signalFilter: ClientFilter = {
export const noiseFilter: ClientFilter = {
id: 'noise',
- predicate: (entity, ctx) => !signalFilter.predicate(entity, ctx),
+ predicate: (entity, ctx) => {
+ if (entity.type !== 'email') return true;
+ return !signalFilter.predicate(entity, ctx);
+ },
};