1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Set sticker type on event instead of message type.

This commit is contained in:
Richard Lewis
2018-01-06 00:13:24 +00:00
parent d44d63c1d6
commit aef27d811a

View File

@@ -1334,12 +1334,13 @@ MatrixClient.prototype.sendStickerMessage = function(roomId, url, info, text, ca
text = "Sticker"; text = "Sticker";
} }
const content = { const content = {
msgtype: "m.sticker",
url: url, url: url,
info: info, info: info,
body: text, body: text,
}; };
return this.sendMessage(roomId, content, callback); return this.sendEvent(
roomId, "m.room.sticker", content, callback, undefined,
);
}; };
/** /**