You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Allow stickers to be sent in a Thread (#7267)
This commit is contained in:
@@ -419,9 +419,16 @@ export default class ContentMessages {
|
||||
private inprogress: IUpload[] = [];
|
||||
private mediaConfig: IMediaConfig = null;
|
||||
|
||||
sendStickerContentToRoom(url: string, roomId: string, info: IImageInfo, text: string, matrixClient: MatrixClient) {
|
||||
sendStickerContentToRoom(
|
||||
url: string,
|
||||
roomId: string,
|
||||
threadId: string | null,
|
||||
info: IImageInfo,
|
||||
text: string,
|
||||
matrixClient: MatrixClient,
|
||||
) {
|
||||
const startTime = CountlyAnalytics.getTimestamp();
|
||||
const prom = matrixClient.sendStickerMessage(roomId, url, info, text).catch((e) => {
|
||||
const prom = matrixClient.sendStickerMessage(roomId, threadId, url, info, text).catch((e) => {
|
||||
logger.warn(`Failed to send content with URL ${url} to room ${roomId}`, e);
|
||||
throw e;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user