Fix internal/external group id issue
This commit is contained in:
parent
a55e939592
commit
46e1116bc5
2 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue