matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
785 stars 148 forks source link

Images bridged from Discord with a message get deleted on Matrix's side if the message is edited #893

Open salixor opened 10 months ago

salixor commented 10 months ago

Currently, there's an issue with the bridge when a Discord user sends an image with a message.

The message on Matrix's side, as expected, is split between two events : one for the text of the message, the other for the image itself. As shown below :

Discord Matrix
image image

However, if the Discord user edits their message, the edit is appended to the image event, rather than the message event. This results in the following :

Discord Matrix
image image

On a side note, the same also happens if the Discord user :

dzaima commented 10 months ago

duplicate of https://github.com/matrix-org/matrix-appservice-discord/issues/859 & https://github.com/matrix-org/matrix-appservice-discord/issues/797