fix: set thumbnail for media messages

close #55
This commit is contained in:
Pedro Lopez
2020-05-23 23:21:13 -04:00
parent 4d09a4b60c
commit 8b656c2caf

View File

@@ -50,6 +50,7 @@ exports.LoadUtils = () => {
let attOptions = {};
if (options.attachment) {
attOptions = await window.WWebJS.processMediaData(options.attachment, options.sendAudioAsVoice);
content = attOptions.preview;
delete options.attachment;
}