fix(automations): exclude private notes from the customer-unresponsive wait

This commit is contained in:
Tanmay Deep Sharma
2026-07-23 18:28:58 +05:30
parent c59dac2fcf
commit ef5d2704eb
@@ -313,6 +313,11 @@ const applyDelayedTrigger = () => {
? buildTriggerCondition('message_type', trigger.messageType)
: buildTriggerCondition('status', triggerStatus.value),
];
// A private note is an outgoing message, so without this an internal note would read as a reply
// and arm the customer-unresponsive wait. Incoming messages are never private.
if (trigger.messageType === 'outgoing') {
conditions.push(buildTriggerCondition('private_note', [false]));
}
if (triggerInboxes.value.length) {
conditions.push(
buildTriggerCondition(