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(list): move list selection on mark done if selection containes emails - regadless of view (#1774)

Seamus4802658e4e1e
diff --git a/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts b/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts
index 6bb62cd799..5ef3ad0773 100644
--- a/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts
+++ b/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts
@@ -119,7 +119,11 @@ export const makeMarkDoneAction = (options: MakeMarkDoneOptions) => {
soup.selection.clear();
const shouldNavigate =
soup.filters.isActive('signal') || soup.filters.isActive('noise');
- if (nextEntity && shouldNavigate) {
+
+ // marking email as done removes it in any view, so we should update selection.
+ const willBeRemoved = entities.some((e) => e.type === 'email');
+
+ if (nextEntity && (shouldNavigate || willBeRemoved)) {
soup.focus.set(nextEntity.id);
onNavigate?.(nextEntity);
}