Include a "body" of the fictitious filename with images
Some clients (like Cinny.in) expect there to be a content.body element present in m.image messages, and will complain "Malformed event" if this value is empty.
This commit is contained in:
parent
877abf1331
commit
6bf07b2598
@ -268,7 +268,7 @@ func SendImage(c *gomatrix.Client, roomID string, img *image.RGBA) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = c.SendImage(roomID, "", mediaURL.ContentURI)
|
_, err = c.SendImage(roomID, "embedded_image.png", mediaURL.ContentURI)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user