Improve types for sendEvent (#12335)
This commit is contained in:
committed by
GitHub
parent
4941327c78
commit
ef2bd7ae04
@@ -622,7 +622,7 @@ export default class ContentMessages {
|
||||
if (upload.cancelled) throw new UploadCanceledError();
|
||||
const threadId = relation?.rel_type === THREAD_RELATION_TYPE.name ? relation.event_id : null;
|
||||
|
||||
const response = await matrixClient.sendMessage(roomId, threadId ?? null, content);
|
||||
const response = await matrixClient.sendMessage(roomId, threadId ?? null, content as MediaEventContent);
|
||||
|
||||
if (SettingsStore.getValue("Performance.addSendMessageTimingMetadata")) {
|
||||
sendRoundTripMetric(matrixClient, roomId, response.event_id);
|
||||
|
||||
Reference in New Issue
Block a user