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(channels): restore message edit controls (#9397)

dev-rb42eb7c912d44
diff --git a/apps/web/src/features/channel/Channel/InlineMessageEditor.tsx b/apps/web/src/features/channel/Channel/InlineMessageEditor.tsx
index 3e143c1ff3..db763c83a8 100644
--- a/apps/web/src/features/channel/Channel/InlineMessageEditor.tsx
+++ b/apps/web/src/features/channel/Channel/InlineMessageEditor.tsx
@@ -1,7 +1,9 @@
import { registerHotkey, useHotkeyDOMScope } from '@core/hotkey/hotkeys';
import { TOKENS } from '@core/hotkey/tokens';
+import { isPlatform } from '@core/util/platform';
import type { MessageParent } from '@service-storage/messages';
import { cn } from '@ui';
+import { Show } from 'solid-js';
import {
ChannelInput,
createInputAttachmentTracker,
@@ -74,6 +76,12 @@ export function MessageEditorContent(props: MessageEditorContentProps) {
props.messageEditor.save(props.message, nextSnapshot)
}
>
+ <Input.Layout.ActionsLeft>
+ <Show when={isPlatform('ios')} fallback={<Input.AttachFilesAction />}>
+ <Input.AttachNativeMediaAction />
+ </Show>
+ <Input.DiscardDraftAction />
+ </Input.Layout.ActionsLeft>
<Input.Layout.ActionsRight>
<Input.SendAction />
</Input.Layout.ActionsRight>
diff --git a/docs/agent-guide/channels.md b/docs/agent-guide/channels.md
index 90e6ff9373..ea8069deb9 100644
--- a/docs/agent-guide/channels.md
+++ b/docs/agent-guide/channels.md
@@ -412,7 +412,10 @@ beside the buttons and collapse when it fits again, without flickering between
layouts. Also add and remove a line break or attachment and
confirm the draft and caret position survive. The attachment and send controls
should remain usable in both layouts. Existing message and reply edit inputs show
-only the send control, with no format or discard button; Escape cancels the edit.
+Attach files, Discard Edit, and Send, with no format toggle; Escape also cancels
+an edit. The iOS app uses its native media picker. Check inline and unified edits
+on desktop and touch: attach a file and save, then edit again and discard changes
+without changing the original message or attachments.
The iOS share sheet keeps its editor above the attachment and formatting controls.
Check this arrangement at both phone and tablet widths.