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: show mobile send button when only attachments are present (#3445)

Peter Chinman2261f5b08ea6
diff --git a/js/app/packages/channel/Input/SendAction.tsx b/js/app/packages/channel/Input/SendAction.tsx
index cdba6f8656..fe8caae298 100644
--- a/js/app/packages/channel/Input/SendAction.tsx
+++ b/js/app/packages/channel/Input/SendAction.tsx
@@ -15,7 +15,6 @@ export function SendAction(props: SendActionProps) {
const [local, rest] = splitProps(props, ['class', 'tooltip', 'hidden']);
const isBlockedByPending = () => !!input().hasPendingAttachments;
const isBlockedByEmptyInput = () => !hasSendableInputContent(input());
- const hasTextInput = () => (input().value?.trim().length ?? 0) > 0;
const tooltipText = () => local.tooltip ?? 'Send message';
@@ -27,7 +26,7 @@ export function SendAction(props: SendActionProps) {
data-input-action="send"
pending={isBlockedByPending()}
disabled={isBlockedByPending() || isBlockedByEmptyInput()}
- hidden={isMobile() && !hasTextInput()}
+ hidden={isMobile() && isBlockedByEmptyInput()}
class={local.class}
onPointerDown={(event) => {
event.preventDefault();