fix(queue): auto-send attachment-only messages (#1149)

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-08 15:41:36 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent da2145ae25
commit 01c19706f4
@@ -126,7 +126,7 @@ export function useQueuedMessageAutoSend(enabledOrOptions?: boolean | { enabled?
}
const payload = buildQueuedPayload(queueSnapshot);
if (!payload.primaryText && !payload.additionalParts?.length) {
if (!payload.primaryText && payload.primaryAttachments.length === 0 && !payload.additionalParts?.length) {
return;
}