Open juliomac opened 5 years ago
Hi! I have the same problem, as reported here (at the wrong place last year. I didn't knew about this repo ): https://github.com/RocketChat/Rocket.Chat/issues/15829
This bug is still happening. It probably can fixed around this line and files: https://github.com/RocketChat/Rocket.Chat.Livechat/blob/develop/src/components/helpers.js#L119 https://github.com/RocketChat/Rocket.Chat.Livechat/blob/develop/src/api.js
I don't know meteor, so can't help much.
I will try to build to tamper with it, but it would be nice to have this working out of the box.
Livechat is a really cool feature.
Thanks!
A workaround, at least for me, in order to send attachments to the user, is to use this endpoint for now: https://rocket.chat/docs/developer-guides/rest-api/rooms/upload/.
Instead of just passing the PDF link to the user, I will have to download the file (I am using a rasa bot), and upload it to the rocketchat using the api.
Not the ideal, but it works for now.
This is related to issue https://github.com/RocketChat/Rocket.Chat/issues/14202 and got solved there with Rocket Chat rc. 03
I am connecting to Rocket Chat from another Meteor app using DDP.connect and calling 'sendMessage' method as below.
Server Setup Information:
Description:
Message is sent correctly but image is not rendered. The browser inspector shows that ROOT_URL is being added automatically to the image_url.
Inspector is showing:
<img class="message__attachment__fHKkc message__attachment--image__1Hqn2" src="https://myrocketchatinstance.com.brhttps://myothersite.com/image.png">
Expected behavior:
It should have been just
<img class="message__attachment__fHKkc message__attachment--image__1Hqn2" src="https://myothersite.com/image.png">
Attempts:
I have disabled on Administration->General-> the CDN prefix on all assets and I have cleared Administration->General Site URL and rebooted server. Still same results.
I have investigated the message database and it shows image_url correctly. It has not added ROOT_URL to it. So the issue occurs later on the process.
This is the HTML of the resulting response:
It is working on the OLD version of Livechat. But it is not working working on the NEW Version of the LiveChat. The one that is called with 'https://chat.libertas.tur.br/livechat?version=1.0.0'