Remove possibility to disable markdown
This commit is contained in:
@@ -10,6 +10,4 @@ Settings {
|
||||
property bool darkTheme
|
||||
|
||||
property string fontFamily: "Roboto,Noto Sans,Noto Color Emoji"
|
||||
|
||||
property bool markdownFormatting: true
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user