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(search): pass attended/speaker/importance filters to search service (#2963)

gbirmanee5cfd8e38fa
diff --git a/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts b/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts
index d886bf24f1..6c0bb0b0f8 100644
--- a/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts
+++ b/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts
@@ -45,12 +45,14 @@ function filterDataToQueryFilters(data: QueryState): EntityFilters {
if (
include.threadId?.length ||
include.emailSender?.length ||
- include.emailShared
+ include.emailShared ||
+ include.emailImportance !== undefined
) {
filters.email_filters = {
email_thread_ids: include.threadId,
senders: include.emailSender,
shared: include.emailShared,
+ importance: include.emailImportance,
};
}
@@ -89,9 +91,15 @@ function filterDataToQueryFilters(data: QueryState): EntityFilters {
}
// Call filters
- if (include.callChannelId?.length) {
+ if (
+ include.callChannelId?.length ||
+ include.callSpeakerId?.length ||
+ include.callAttended !== undefined
+ ) {
filters.call_filters = {
channel_ids: include.callChannelId,
+ speaker_ids: include.callSpeakerId,
+ attended: include.callAttended,
};
}