chore: possibilita o envio de medias do tipo .svg

This commit is contained in:
Willian Coqueiro 2025-05-22 03:02:04 +00:00
parent 5b817028a9
commit 0ca109e9d6

View File

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