fix(queue): auto-send attachment-only messages (#1149)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user