Replace hardcoded strings with MsgType constants (#10604)
* replace hardcoded strings with MsgType constants * fix import and revert comments Signed-off-by: Ken Wu kenqiwu@gmail.com * fix import Signed-off-by: Ken Wu kenqiwu@gmail.com --------- Signed-off-by: Ken Wu kenqiwu@gmail.com
This commit is contained in:
parent
4d859a34e7
commit
dc4bb237d4
5 changed files with 10 additions and 11 deletions
|
@ -344,7 +344,7 @@ export default class HTMLExporter extends Exporter {
|
|||
|
||||
protected createModifiedEvent(text: string, mxEv: MatrixEvent, italic = true): MatrixEvent {
|
||||
const modifiedContent = {
|
||||
msgtype: "m.text",
|
||||
msgtype: MsgType.Text,
|
||||
body: `${text}`,
|
||||
format: "org.matrix.custom.html",
|
||||
formatted_body: `${text}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue