refactor: move whatsapp allowFrom config

This commit is contained in:
Peter Steinberger committed 2026-01-02 13:00:29 +01:00
1 parent 58d32d4542
commit 0766c5e3cb
39 files changed
+452 -117

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ export function normalizeE164(number: string): string {
/**
* "Self-chat mode" heuristic (single phone): the gateway is logged in as the owner's own WhatsApp account,
* and `routing.allowFrom` includes that same number. Used to avoid side-effects that make no sense when the
* and `whatsapp.allowFrom` includes that same number. Used to avoid side-effects that make no sense when the
* "bot" and the human are the same WhatsApp identity (e.g. auto read receipts, @mention JID triggers).
*/
export function isSelfChatMode(