mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
feat: integrate Husky and lint-staged for automated code quality checks; update changelog and README for new features
This commit is contained in:
@@ -2604,6 +2604,13 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
}
|
||||
}
|
||||
|
||||
if (mediaMessage?.fileName) {
|
||||
mimetype = mimeTypes.lookup(mediaMessage.fileName).toString();
|
||||
if (mimetype === 'application/mp4') {
|
||||
mimetype = 'video/mp4';
|
||||
}
|
||||
}
|
||||
|
||||
prepareMedia[mediaType].caption = mediaMessage?.caption;
|
||||
prepareMedia[mediaType].mimetype = mimetype;
|
||||
prepareMedia[mediaType].fileName = mediaMessage.fileName;
|
||||
|
||||
Reference in New Issue
Block a user