Skip to content

matrix: m.image body should be image caption, not message body #165

@selfhoster1312

Description

@selfhoster1312

On #23 we have an issue that an image relayed from matrix will produce 3 messages:

  • one with the username and messagebody (before file upload)
  • one with only the username (and optional caption)
  • the image

But because matrix sets the message body to the filename, it appears as:

  • username + filename
  • username
  • image

The only reference i found so far says the body is required when the message is of type m.image, and that it may be a caption, the filename, or whatever (unspecified).

I believe in that case we should consider the message body to be the image caption because that's the closest semantically, and make the body appear empty to other bridges.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions