You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Inject stickers
This commit is contained in:
@@ -275,6 +275,12 @@ class ContentMessages {
|
||||
this.nextId = 0;
|
||||
}
|
||||
|
||||
sendURLContentToRoom(url, roomId, info, text, matrixClient) {
|
||||
return MatrixClientPeg.get().sendImageMessage(roomId, url, info, text).catch((e) => {
|
||||
console.warn(`Failed to send content with URL ${url} to room ${roomId}`, e);
|
||||
});
|
||||
}
|
||||
|
||||
sendContentToRoom(file, roomId, matrixClient) {
|
||||
const content = {
|
||||
body: file.name || 'Attachment',
|
||||
|
||||
Reference in New Issue
Block a user