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,
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ class ChannelsCdrSignalController < ApplicationController
|
|||
Rails.logger.info " - stored_chat_id: #{stored_chat_id}"
|
||||
Rails.logger.info " - incoming_group_id: #{receiver_phone_number}"
|
||||
|
||||
matches = receiver_phone_number == chat_id
|
||||
matches = receiver_phone_number == stored_chat_id
|
||||
Rails.logger.info " - MATCH: #{matches}"
|
||||
|
||||
matches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue