style: format whatsapp inbound allowlist

This commit is contained in:
Peter Steinberger
2026-01-06 18:32:48 +00:00
parent 730cc72388
commit 9fb37cbf93

View File

@@ -192,13 +192,9 @@ export async function monitorWebInbox(options: {
new Set([...(configuredAllowFrom ?? []), ...storeAllowFrom]),
);
const defaultAllowFrom =
combinedAllowFrom.length === 0 && selfE164
? [selfE164]
: undefined;
combinedAllowFrom.length === 0 && selfE164 ? [selfE164] : undefined;
const allowFrom =
combinedAllowFrom.length > 0
? combinedAllowFrom
: defaultAllowFrom;
combinedAllowFrom.length > 0 ? combinedAllowFrom : defaultAllowFrom;
const groupAllowFrom =
account.groupAllowFrom ??
(configuredAllowFrom && configuredAllowFrom.length > 0