Merge pull request #1633 from VCalazans/FIX/ISSUE-28

🐛 fix: Phone number as message ID for Evo AI #ISSUE 28
This commit is contained in:
Davidson Gomes 2025-06-23 15:35:56 -03:00 committed by GitHub
commit 873fdcb22a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ export class EvoaiService extends BaseChatbotService<Evoai, EvoaiSetting> {
}
const callId = `req-${uuidv4().substring(0, 8)}`;
const messageId = msg?.key?.id || uuidv4();
const messageId = remoteJid.split('@')[0] || uuidv4(); // Use phone number as messageId
// Prepare message parts
const parts = [