Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Posting an image from Matrix -> Gitter does not work #65

Open
devnoname120 opened this issue Jun 27, 2018 · 3 comments
Open

Posting an image from Matrix -> Gitter does not work #65

devnoname120 opened this issue Jun 27, 2018 · 3 comments

Comments

@devnoname120
Copy link

Room:

How it looks from Riot:
image

How it looks from Gitter:
image

Source of the image message:

{
  "origin_server_ts": 1530114644742,
  "sender": "@noname120:matrix.org",
  "event_id": "$1530114644346124qTqmJ:matrix.org",
  "unsigned": {
    "age": 99246,
    "transaction_id": "m1530114648133.199"
  },
  "content": {
    "body": "image.png",
    "info": {
      "mimetype": "image/png",
      "thumbnail_info": {
        "mimetype": "image/png",
        "h": 222,
        "w": 799,
        "size": 38848
      },
      "h": 222,
      "thumbnail_url": "mxc://matrix.org/evTRpifohxyOUuQWeaJeZHtH",
      "w": 799,
      "size": 33839
    },
    "msgtype": "m.image",
    "url": "mxc://matrix.org/pAiUxsUmEWUtUMEwTAdRozel"
  },
  "type": "m.room.message",
  "room_id": "!lfkzGdqQhBqHTsDQLV:matrix.org"
}
@jezcope
Copy link

jezcope commented Mar 27, 2020

Gitter supports posting inline images using Markdown: ![Optional image title](image URL)

Could m.image messages be translated to this on the Gitter side?

@jezcope
Copy link

jezcope commented Mar 27, 2020

Huh, looks like this is already done:

var text = '![' + message.content.body + '](' + image_url + ')';

Maybe I just need to update my instance of the bridge.

@MarkWieczorek
Copy link

Posting of images in Matrix still don't get relayed to Gitter. Here is what it looks like for me in Gitter:

Screen Shot 2020-04-15 at 12 22 33

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants