correctly display filename in MimeComponents

(previously it would include the caption text and save with it as
filename)
Don't append filename to the caption.

Relevant spec: https://spec.matrix.org/latest/client-server-api/#mfile
This commit is contained in:
Andreas Gattringer
2024-07-15 12:34:11 +02:00
parent 029bda5734
commit a4a411cf1f
3 changed files with 26 additions and 17 deletions

View File

@@ -69,13 +69,12 @@ DelegateChooser {
DelegateChoice {
roleValue: MessageComponentType.Video
delegate: MimeComponent {
required property string display
required property var mediaInfo
mimeIconSource: mediaInfo.mimeIcon
size: mediaInfo.size
duration: mediaInfo.duration
label: display
label: mediaInfo.filename
}
}
@@ -116,7 +115,7 @@ DelegateChooser {
mimeIconSource: mediaInfo.mimeIcon
size: mediaInfo.size
duration: mediaInfo.duration
label: display
label: mediaInfo.filename
}
}
@@ -128,7 +127,7 @@ DelegateChooser {
mimeIconSource: mediaInfo.mimeIcon
size: mediaInfo.size
label: display
label: mediaInfo.filename
}
}