Merge pull request #3 from brycied00d/fix_send_image
Include a "body" of the fictitious filename with images
This commit is contained in:
commit
aaa3bc6958
@ -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