diff --git a/src/ContentMessages.js b/src/ContentMessages.js index a173a9f727..47ad87a8d7 100644 --- a/src/ContentMessages.js +++ b/src/ContentMessages.js @@ -275,8 +275,8 @@ class ContentMessages { this.nextId = 0; } - sendURLContentToRoom(url, roomId, info, text, matrixClient) { - return MatrixClientPeg.get().sendImageMessage(roomId, url, info, text).catch((e) => { + sendStickerContentToRoom(url, roomId, info, text, matrixClient) { + return MatrixClientPeg.get().sendStickerMessage(roomId, url, info, text).catch((e) => { console.warn(`Failed to send content with URL ${url} to room ${roomId}`, e); }); } diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 7980e100ba..60987fe26e 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -916,7 +916,7 @@ module.exports = React.createClass({ return; } - ContentMessages.sendURLContentToRoom(url, this.state.room.roomId, info, text, MatrixClientPeg.get()) + ContentMessages.sendStickerContentToRoom(url, this.state.room.roomId, info, text, MatrixClientPeg.get()) .done(undefined, (error) => { if (error.name === "UnknownDeviceError") { // Let the staus bar handle this