You've already forked matrix-js-sdk
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:
@@ -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,
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user