Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Image events without *info* not showed correctly #2666

Closed
@danigm

Description

@danigm

Image events without info aren't showed correctly in Riot-android. The Riot web is showing this events correctly.

This problem is reported in Fractal because the current version of Fractal doesn't add the info field to the content: https://gitlab.gnome.org/World/fractal/issues/348

But in the spec the info field isn't required: https://matrix.org/docs/spec/client_server/latest.html#m-image.

We'll add the info field to the Fractal client, but I think that this is a bug in the riot-android and maybe other clients will sent this kind of messages so this client should show the preview correctly or at least show it as a normal attachment to download.

This is what riot-android is showing:

snapshot

Example event:

{
  "content": {
    "body": "org.gnome.Fractal.png",
    "msgtype": "m.image",
    "url": "mxc://matrix.org/VAJakxauMZSEhdyefwiqHoXZ"
  },
  "event_id": "$1539933516193407fdvmT:matrix.org",
  "sender": "@danigm:matrix.org",
  "type": "m.room.message",
  "unsigned": {
    "age": 631854,
    "transaction_id": "8252f4a4ea7cc0534e49e4e14a8a8784"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions