chore: fix lint and add gateway auth tests

This commit is contained in:
Peter Steinberger committed 2026-01-02 17:15:26 +01:00
1 parent 8d925226cb
commit 314164fb8a
10 files changed
+115 -36

No files matched your search

+3 -1
View File
@@ -854,7 +854,9 @@ export async function getReplyFromConfig(
const from = (ctx.From ?? "").replace(/^whatsapp:/, "");
const to = (ctx.To ?? "").replace(/^whatsapp:/, "");
const defaultAllowFrom =
isWhatsAppSurface && (!configuredAllowFrom || configuredAllowFrom.length === 0) && to
isWhatsAppSurface &&
(!configuredAllowFrom || configuredAllowFrom.length === 0) &&
to
? [to]
: undefined;
const allowFrom =