smsapp: Fix wrong QML connection for plaing/displaying media

This commit is contained in:
Alexander Lohnau 2023-10-03 10:17:41 +02:00
parent d7df67ce0a
commit aa30937905

View file

@ -135,9 +135,9 @@ Item {
Connections {
target: conversationModel
function onFilePathReceived() {
function onFilePathReceived(filePath, fileName) {
if (root.uniqueIdentifier == fileName && root.sourcePath == "") {
root.sourcePath = "file:" + filePath
root.sourcePath = "file://" + filePath
if (root.mimeType.match("audio")) {
audioPlayer.source = root.sourcePath