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(email): use soup mark-done for 'e' key instead of email archive (#2334)

Evan Hutnik66a44a5d8ae9
diff --git a/js/app/packages/block-email/component/Email.tsx b/js/app/packages/block-email/component/Email.tsx
index e7b6398139..f604cde564 100644
--- a/js/app/packages/block-email/component/Email.tsx
+++ b/js/app/packages/block-email/component/Email.tsx
@@ -320,8 +320,7 @@ function EmailContent(props: EmailViewProps) {
const navigateToNextMessage = () => navigateMessage('next');
onMount(() => {
- registerEmailHotkeys(scopeId(), context.thread, {
- archiveThread: context.archiveThread,
+ registerEmailHotkeys(scopeId(), {
blockSender: context.blockSender,
markSenderSignal: context.markSenderSignal,
markSenderNoise: context.markSenderNoise,
diff --git a/js/app/packages/block-email/util/emailHotkeys.ts b/js/app/packages/block-email/util/emailHotkeys.ts
index 78c4cb9838..c0b8b2e0fa 100644
--- a/js/app/packages/block-email/util/emailHotkeys.ts
+++ b/js/app/packages/block-email/util/emailHotkeys.ts
@@ -1,10 +1,7 @@
import { TOKENS } from '@core/hotkey/tokens';
-import type { ApiThread } from '@service-email/generated/schemas';
import { registerHotkey } from 'core/hotkey/hotkeys';
-import type { Accessor } from 'solid-js';
export interface EmailHotkeyHandlers {
- archiveThread: () => boolean;
blockSender: () => boolean;
markSenderSignal: () => boolean;
markSenderNoise: () => boolean;
@@ -14,19 +11,8 @@ export interface EmailHotkeyHandlers {
export function registerEmailHotkeys(
scopeId: string,
- threadData: Accessor<ApiThread | undefined>,
handlers: EmailHotkeyHandlers
) {
- registerHotkey({
- hotkey: 'e',
- scopeId: scopeId,
- description: threadData()?.inbox_visible
- ? 'Unarchive thread'
- : 'Archive thread',
- keyDownHandler: handlers.archiveThread,
- hotkeyToken: TOKENS.email.archive,
- displayPriority: 10,
- });
registerHotkey({
hotkey: 'opt+r',
scopeId: scopeId,