From acfc4582c9465bf2e5b9fbdebcc46bb8685a69c5 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 14 Jun 2021 17:05:53 -0600 Subject: [PATCH] Fix issue --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index f7f85bf..58c154c 100644 --- a/main.js +++ b/main.js @@ -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) => {