mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:36:03 -04:00
Send images with their imageInfo (size, mymetype, width & height)
This commit is contained in:
parent
da2f5aac0e
commit
6d3391f2f0
5 changed files with 89 additions and 17 deletions
|
@ -204,11 +204,11 @@ angular.module('matrixService', [])
|
|||
},
|
||||
|
||||
// Send an image message
|
||||
sendImageMessage: function(room_id, image_url, image_alt, msg_id) {
|
||||
sendImageMessage: function(room_id, image_url, image_body, msg_id) {
|
||||
var content = {
|
||||
msgtype: "m.image",
|
||||
url: image_url,
|
||||
body: image_alt
|
||||
body: image_body
|
||||
};
|
||||
|
||||
return this.sendMessage(room_id, msg_id, content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue