Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chg(channels): remove pending send now that optimistic (#1304)
teoe36015db9b95
diff --git a/js/app/packages/block-channel/component/BaseInput.tsx b/js/app/packages/block-channel/component/BaseInput.tsxindex 7a82c60646..fb71140f44 100644--- a/js/app/packages/block-channel/component/BaseInput.tsx+++ b/js/app/packages/block-channel/component/BaseInput.tsx@@ -129,7 +129,6 @@ export function BaseInput(props: BaseInputProps) {const key = props.inputAttachments.key;const [showFormatRibbon, setShowFormatRibbon] = createSignal(false);const [isDraggedOver, setIsDraggedOver] = createSignal(false);- const [isPendingSend, setIsPendingSend] = createSignal(false);const [isValidChannelDrag] = isInBlock()? isValidChannelDragSignal: createSignal(false);@@ -363,9 +362,6 @@ export function BaseInput(props: BaseInputProps) {}async function handleSend() {- if (isPendingSend()) return false;- setIsPendingSend(true);-const statePromise = pendingEditorState(editor);editor.update(() => {@@ -419,9 +415,6 @@ export function BaseInput(props: BaseInputProps) {});}focusMarkdownArea();- })- .finally(() => {- setIsPendingSend(false);});return true;@@ -521,7 +514,7 @@ export function BaseInput(props: BaseInputProps) {isMobile()? (_e) => false: (_e) => {- if (hasPendingAttachments() || isPendingSend()) {+ if (hasPendingAttachments()) {return true;}handleSend();@@ -655,7 +648,7 @@ export function BaseInput(props: BaseInputProps) {class="group transition ease-in-out hover:bg-transparent"><Show- when={!hasPendingAttachments() && !isPendingSend()}+ when={!hasPendingAttachments()}fallback={<Spinner class="size-6 animate-spin cursor-disabled" />}><div class="group-hover:scale-115 group-hover:bg-accent transition ease-in-out size-6 touch:size-8 border border-accent rounded-full flex items-center justify-center">