Skip to content

Commit 0ca109e

Browse files
committed
chore: possibilita o envio de medias do tipo .svg
1 parent 5b81702 commit 0ca109e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,8 @@ export class ChatwootService {
11101110
return messageSent;
11111111
}
11121112

1113-
if (type === 'image' && parsedMedia && parsedMedia?.ext === '.gif') {
1113+
const documentExtensions = ['.gif', '.svg'];
1114+
if (type === 'image' && parsedMedia && documentExtensions.includes(parsedMedia?.ext)) {
11141115
type = 'document';
11151116
}
11161117

0 commit comments

Comments
 (0)