Merge pull request #1483 from KokeroO/develop

chore: possibilita o envio de medias do tipo [svg, tiff] vindas do Chatwoot
This commit is contained in:
Davidson Gomes 2025-05-22 07:03:41 -03:00 committed by GitHub
commit 6f47a54fae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1110,7 +1110,8 @@ export class ChatwootService {
return messageSent;
}
if (type === 'image' && parsedMedia && parsedMedia?.ext === '.gif') {
const documentExtensions = ['.gif', '.svg', '.tiff', '.tif'];
if (type === 'image' && parsedMedia && documentExtensions.includes(parsedMedia?.ext)) {
type = 'document';
}