Merge pull request #1435 from edisonmartinsmkt/fix/audio-caption-fallback

fix(chatwoot): only fallback audio caption when audioMessage exists
This commit is contained in:
Davidson Gomes 2025-05-10 19:14:41 -03:00 committed by GitHub
commit ec9de49647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1652,7 +1652,7 @@ export class ChatwootService {
stickerMessage: undefined,
documentMessage: msg.documentMessage?.caption,
documentWithCaptionMessage: msg.documentWithCaptionMessage?.message?.documentMessage?.caption,
audioMessage: msg.audioMessage?.caption || '',
audioMessage: msg.audioMessage ? (msg.audioMessage.caption ?? '') : undefined,
contactMessage: msg.contactMessage?.vcard,
contactsArrayMessage: msg.contactsArrayMessage,
locationMessage: msg.locationMessage,