Room: Added a text input to type an image URL in order to send an image message

This commit is contained in:
Emmanuel ROHEE 2014-08-13 11:42:28 +02:00
parent 30efb04060
commit c87e1f6418
4 changed files with 37 additions and 3 deletions

View file

@ -197,6 +197,17 @@ angular.module('matrixService', [])
return this.sendMessage(room_id, msg_id, content);
},
// Send an image message
sendImageMessage: function(room_id, image_url, image_alt, msg_id) {
var content = {
msgtype: "m.image",
url: image_url,
body: image_alt
};
return this.sendMessage(room_id, msg_id, content);
},
// Send an emote message
sendEmoteMessage: function(room_id, body, msg_id) {
var content = {