Merge pull request #3 from brycied00d/fix_send_image

Include a "body" of the fictitious filename with images
This commit is contained in:
Aaron Bieber 2022-08-12 19:11:53 -06:00 committed by GitHub
commit aaa3bc6958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ func SendImage(c *gomatrix.Client, roomID string, img *image.RGBA) error {
return err
}
_, err = c.SendImage(roomID, "", mediaURL.ContentURI)
_, err = c.SendImage(roomID, "embedded_image.png", mediaURL.ContentURI)
if err != nil {
return err
}