From aef27d811ae6d49e014c30af19a14f3f5997ff18 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Sat, 6 Jan 2018 00:13:24 +0000 Subject: [PATCH] Set sticker type on event instead of message type. --- src/client.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client.js b/src/client.js index 5933433f3..e1596bb40 100644 --- a/src/client.js +++ b/src/client.js @@ -1334,12 +1334,13 @@ MatrixClient.prototype.sendStickerMessage = function(roomId, url, info, text, ca text = "Sticker"; } const content = { - msgtype: "m.sticker", url: url, info: info, body: text, }; - return this.sendMessage(roomId, content, callback); + return this.sendEvent( + roomId, "m.room.sticker", content, callback, undefined, + ); }; /**