Commit 27b4f258 authored by Linus Jahn's avatar Linus Jahn 🍙

Disable file description for now

The most other clients don't support messages with a file + text, so
this usually leads to problems. When we support SIMS we should rethink
this.
parent ebcccec2
Pipeline #341 passed with stages
in 4 minutes and 46 seconds
......@@ -51,7 +51,7 @@ RowLayout {
property bool isLastMessage
property bool edited
property var upload: {
if (mediaType != Enums.MessageText && mediaGetUrl == ""
if (mediaType !== Enums.MessageText && mediaGetUrl === ""
&& kaidan.transferCache.hasUpload(msgId)) {
kaidan.transferCache.uploadByMessageId(model.id)
}
......@@ -210,7 +210,7 @@ RowLayout {
visible: edited
Layout.preferredHeight: Kirigami.Units.gridUnit * 0.65
Layout.preferredWidth: Kirigami.Units.gridUnit * 0.65
}
}
}
}
}
......
......@@ -62,8 +62,10 @@ Kirigami.OverlaySheet {
// - Enabled/Disable image compression
// caption/description text field
// disabled for now; most other clients (currently) don't support this
Controls.TextField {
id: descField
visible: false
text: ""
placeholderText: qsTr("Caption")
selectByMouse: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment