Image posts bridged from Gitter are invisible to Matrix users
Images posted by Gitter users are bridged as events with a formatted_body
of <a href="snip"><img src="https://user-content.gitter-static.net/snip"></a>
. Matrix clients do not load external resources embedded in messages, because this is a security/privacy hazard. As a result, the message appears blank. Gitter should upload the original image to Matrix and send a standard Matrix image message instead.
Alternatively, the preview image could be replaced with a plain text link as a quick hack.
Relevant code
-
modules/matrix-bridge/lib/gitter-bridge.js#L238-263
: Where we send the message from Gitter over to Matrix -
modules/matrix-bridge/lib/transform-gitter-text-into-matrix-message.js
: The transformations we apply to the Gitter message to make it Matrix compatible. This is where we could transform the image syntax into a plain text link or pull out the image to upload to Matrix.
Edited by Eric Eastwood