Skip to content

fix: match whatsapp lid aliases in dispatcher allowlist#545

Merged
stephamie7 merged 2 commits into
devfrom
fix/whatsapp-lid-allowlist-match
Jul 14, 2026
Merged

fix: match whatsapp lid aliases in dispatcher allowlist#545
stephamie7 merged 2 commits into
devfrom
fix/whatsapp-lid-allowlist-match

Conversation

@JohnYin-hub

Copy link
Copy Markdown
Contributor

已从最新 dev 新建分支并完成修复。
分支:
fix/whatsapp-lid-allowlist-match
远程地址:
https://github.com/AgentFlocks/flocks/tree/fix/whatsapp-lid-allowlist-match
最新提交:
fb794ab fix: match whatsapp lid aliases in dispatcher allowlist
修复内容:
Dispatcher 层对 WhatsApp 通道的 allowlist 不再使用简单字符串匹配。
当 msg.channel_id == "whatsapp" 时,复用 WhatsApp 的 matches_identifier,支持:25482795991095
25482795991095@lid
这两种格式互相匹配。

DM allowlist 和群消息 allowlist 都已覆盖。
其他通道仍保持原来的精确匹配逻辑,不扩大影响面。
验证已通过:
uv run --group dev python -m pytest tests/channel/test_whatsapp.py tests/channel/test_channel.py::TestCheckAllowlist29 个测试通过

git diff --check 通过
npm run build 通过

@stephamie7
stephamie7 merged commit 897d7c0 into dev Jul 14, 2026
@duguwanglong
duguwanglong deleted the fix/whatsapp-lid-allowlist-match branch July 22, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants