Revert "fix(whatsapp): handle group mentions and caller allowlists"

This reverts commit 9664e85599.
This commit is contained in:
xmanrui 2026-08-26 18:01:08 +08:00
parent a9bb0ed3ba
commit 25d0b2fb0b
13 changed files with 215 additions and 564 deletions

View file

@ -97,11 +97,6 @@ function normalizeBot(value) {
typeof entry === 'string' && /^[1-9]\d{4,14}$/.test(entry)
)))]
: [],
groupAllowedNumbers: Array.isArray(value.accessPolicy?.groupAllowedNumbers)
? [...new Set(value.accessPolicy.groupAllowedNumbers.filter((entry) => (
typeof entry === 'string' && /^[1-9]\d{4,14}$/.test(entry)
)))]
: [],
},
bot: {
name: text(value.bot?.name, 'WhatsApp机器人', 100),