From 8989bd9fd7529c64fb679b1445b85480a4ca9ef0 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 2 Jan 2026 17:15:12 +0100 Subject: [PATCH] fix(auto-reply): default whatsapp self-only on empty config --- src/auto-reply/reply.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/auto-reply/reply.ts b/src/auto-reply/reply.ts index 47ec99056..1b85bb096 100644 --- a/src/auto-reply/reply.ts +++ b/src/auto-reply/reply.ts @@ -853,6 +853,11 @@ export async function getReplyFromConfig( : undefined; const from = (ctx.From ?? "").replace(/^whatsapp:/, ""); const to = (ctx.To ?? "").replace(/^whatsapp:/, ""); + const isEmptyConfig = Object.keys(cfg).length === 0; + if (isWhatsAppSurface && isEmptyConfig && from && to && from !== to) { + cleanupTyping(); + return undefined; + } const defaultAllowFrom = isWhatsAppSurface && (!configuredAllowFrom || configuredAllowFrom.length === 0) &&