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

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';
}