Fix issue

This commit is contained in:
Skylar Ittner 2021-06-14 17:05:53 -06:00
parent 1ecaafff30
commit acfc4582c9

View File

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