Can edit message content
This commit is contained in:
@@ -92,6 +92,21 @@ export class MatrixApiEvent {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit text message content
|
||||
*/
|
||||
static async SetTextMessageContent(
|
||||
room: Room,
|
||||
event_id: string,
|
||||
content: string
|
||||
): Promise<void> {
|
||||
await APIClient.exec({
|
||||
method: "POST",
|
||||
uri: `/matrix/room/${room.id}/event/${event_id}/set_text_content`,
|
||||
jsonData: { content },
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an event
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user