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 -2
View File
@@ -61,8 +61,7 @@ function resolveRuntime(opts: MonitorIMessageOpts): RuntimeEnv {
function resolveAllowFrom(opts: MonitorIMessageOpts): string[] {
const cfg = loadConfig();
const raw =
opts.allowFrom ?? cfg.imessage?.allowFrom ?? cfg.routing?.allowFrom ?? [];
const raw = opts.allowFrom ?? cfg.imessage?.allowFrom ?? [];
return raw.map((entry) => String(entry).trim()).filter(Boolean);
}