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): exclude foreign entities from recently-viewed Cmd-K menu (#3881)

gbirmanbd190a778c7d
diff --git a/js/app/packages/queries/soup/recently-viewed.ts b/js/app/packages/queries/soup/recently-viewed.ts
index 85332bf778..e35aa5c434 100644
--- a/js/app/packages/queries/soup/recently-viewed.ts
+++ b/js/app/packages/queries/soup/recently-viewed.ts
@@ -1,3 +1,4 @@
+import { NIL_UUID } from '@app/component/next-soup/filters/filter-store';
import { throwOnErr } from '@core/util/result';
import { storageServiceClient } from '@service-storage/client';
import { useQuery } from '@tanstack/solid-query';
@@ -19,12 +20,14 @@ const RECENTLY_VIEWED_GC_TIME = 10 * 60 * 1000; // 10 minutes
const recentlyViewedArgs: SoupItemsQueryArgs = {
params: { sort_method: 'viewed_at', limit: RECENTLY_VIEWED_LIMIT },
body: {
- // No viewed_at signal on calls or crm_companies — exclude both.
call_filters: {
- call_ids: ['00000000-0000-0000-0000-000000000000'],
+ call_ids: [NIL_UUID],
},
crm_company_filters: {
- company_ids: ['00000000-0000-0000-0000-000000000000'],
+ company_ids: [NIL_UUID],
+ },
+ foreign_entity_filters: {
+ ids: [NIL_UUID],
},
},
};