Fix internal/external group id issue

This commit is contained in:
Darren Clarke 2025-07-08 18:25:44 +02:00
parent a55e939592
commit 46e1116bc5
2 changed files with 4 additions and 2 deletions

View file

@ -82,7 +82,9 @@ const processMessage = async ({
dataMessage?.groupV2?.id ||
dataMessage?.groupContext?.id ||
dataMessage?.groupInfo?.groupId;
const toRecipient = groupId ?? phoneNumber;
const toRecipient = groupId
? `group.${Buffer.from(groupId).toString("base64")}`
: phoneNumber;
const primaryMessage = {
token: id,