Update whatsapp.service.ts

This commit is contained in:
Francis Breit 2023-10-01 17:23:17 -03:00 committed by GitHub
parent d0c9259c9d
commit 70adcc0411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2321,7 +2321,7 @@ export class WAStartupService {
let mimetype: string;
// novo critério para adotar mimetype quando nao está presente na url e no filenemae - inicio
if (isURL(mediaMessage.media || mediaMessage.fileName )) {
if (isURL(mediaMessage.media || mediaMessage.fileName !== "" )) {
if (isURL(mediaMessage.media)) {
mimetype = getMIMEType(mediaMessage.media);
} else {