Remove possibility to disable markdown

This commit is contained in:
Carl Schwan
2020-11-03 16:13:59 +01:00
parent 8b3f89cf2e
commit 312121fadd
2 changed files with 1 additions and 16 deletions

View File

@@ -10,6 +10,4 @@ Settings {
property bool darkTheme
property string fontFamily: "Roboto,Noto Sans,Noto Color Emoji"
property bool markdownFormatting: true
}

View File

@@ -417,23 +417,10 @@ Control {
messageEventType = RoomMessageEvent.Notice
}
if (MSettings.markdownFormatting) {
currentRoom.postArbitaryMessage(text, messageEventType, replyEventID)
} else {
currentRoom.postPlainMessage(text, messageEventType, replyEventID)
}
currentRoom.postArbitaryMessage(text, messageEventType, replyEventID)
}
}
ToolButton {
flat: true
Layout.alignment: Qt.AlignVCenter
icon.name: "format-text-code"
font.pixelSize: 16
onClicked: MSettings.markdownFormatting = !MSettings.markdownFormatting
}
ToolButton {
Layout.preferredWidth: 48
Layout.preferredHeight: 48