Send images with their imageInfo (size, mymetype, width & height)

This commit is contained in:
Emmanuel ROHEE 2014-08-20 16:18:50 +02:00
parent da2f5aac0e
commit 6d3391f2f0
5 changed files with 89 additions and 17 deletions

View file

@ -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);