Fix editing topic

pull/1090/head
Nicolas Werner 3 years ago
parent 7060693c61
commit 7e0bc0658c
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 9
      resources/qml/dialogs/RoomSettings.qml

@ -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

Loading…
Cancel
Save