Fix issue

master
Skylar Ittner 3 years ago
parent 1ecaafff30
commit acfc4582c9

@ -130,10 +130,11 @@ function getAndUploadFile(url, callback) {
// upload
logger.info("Uploading MMS media to Matrix " + url);
client.uploadContent(buffer, {
onlyContentUri: true
onlyContentUri: true,
rawResponse: false
}).then((res) => {
if (typeof callback == "function") {
callback(res);
callback(res.content_uri);
logger.info("Media URI: " + res);
}
}).catch((err) => {

Loading…
Cancel
Save