Skip to content
Snippets Groups Projects
Verified Commit 7e0bc065 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix editing topic

parent 7060693c
No related branches found
No related tags found
No related merge requests found
Pipeline #3182 passed
......@@ -194,12 +194,9 @@ ApplicationWindow {
readOnly: !isTopicEditingAllowed
textFormat: isTopicEditingAllowed ? TextEdit.PlainText : TextEdit.RichText
text: {
if (roomSettings.plainRoomTopic === "")
return qsTr("<i>No topic set</i>")
else
return isTopicEditingAllowed ? roomSettings.plainRoomTopic : roomSettings.roomTopic
}
text: isTopicEditingAllowed
? roomSettings.plainRoomTopic
: (roomSettings.plainRoomTopic === "" ? ("<i>" + qsTr("No topic set") + "</i>") : roomSettings.roomTopic)
wrapMode: TextEdit.WordWrap
background: null
selectByMouse: !Settings.mobileMode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment