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.

fix(soup): email attachments showing in documents view (#3776)

dev-rbfd72824a0c9f
diff --git a/js/app/packages/app/component/app-sidebar/soup-filter-presets.ts b/js/app/packages/app/component/app-sidebar/soup-filter-presets.ts
index d1f81348b1..042ac7112f 100644
--- a/js/app/packages/app/component/app-sidebar/soup-filter-presets.ts
+++ b/js/app/packages/app/component/app-sidebar/soup-filter-presets.ts
@@ -212,7 +212,10 @@ export const VIEW_TAB_PRESETS: Record<ListView, ViewTabConfig> = {
if (!ctx.userId) return undefined;
return {
filters: defineQueryFilters({
- include: { documentOwnerId: [ctx.userId] },
+ include: {
+ documentOwnerId: [ctx.userId],
+ isEmailAttachment: false,
+ },
exclude: { subType: ['task'] },
}),
clientFilters: { and: ['document-or-file', 'owned-entity'] },
@@ -222,6 +225,9 @@ export const VIEW_TAB_PRESETS: Record<ListView, ViewTabConfig> = {
if (!ctx.userId) return undefined;
return {
filters: defineQueryFilters({
+ include: {
+ isEmailAttachment: false,
+ },
exclude: { subType: ['task'], documentOwnerId: [ctx.userId] },
}),
clientFilters: { and: ['document-or-file', 'shared-entity'] },