style: format whatsapp inbound allowlist
parent
730cc72388
commit
9fb37cbf93
|
|
@ -192,13 +192,9 @@ export async function monitorWebInbox(options: {
|
||||||
new Set([...(configuredAllowFrom ?? []), ...storeAllowFrom]),
|
new Set([...(configuredAllowFrom ?? []), ...storeAllowFrom]),
|
||||||
);
|
);
|
||||||
const defaultAllowFrom =
|
const defaultAllowFrom =
|
||||||
combinedAllowFrom.length === 0 && selfE164
|
combinedAllowFrom.length === 0 && selfE164 ? [selfE164] : undefined;
|
||||||
? [selfE164]
|
|
||||||
: undefined;
|
|
||||||
const allowFrom =
|
const allowFrom =
|
||||||
combinedAllowFrom.length > 0
|
combinedAllowFrom.length > 0 ? combinedAllowFrom : defaultAllowFrom;
|
||||||
? combinedAllowFrom
|
|
||||||
: defaultAllowFrom;
|
|
||||||
const groupAllowFrom =
|
const groupAllowFrom =
|
||||||
account.groupAllowFrom ??
|
account.groupAllowFrom ??
|
||||||
(configuredAllowFrom && configuredAllowFrom.length > 0
|
(configuredAllowFrom && configuredAllowFrom.length > 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue