mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:06:06 -04:00
Room: Added a text input to type an image URL in order to send an image message
This commit is contained in:
parent
30efb04060
commit
c87e1f6418
4 changed files with 37 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue