Commit 8dd01e74 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Fix sending files

parent b0f2868a
Pipeline #15616 failed with stages
in 44 minutes and 42 seconds
......@@ -322,6 +322,7 @@ ChatPageBase {
function openFileDialog(filterName, filter, title) {
fileChooserLoader.source = "qrc:/qml/elements/FileChooser.qml"
fileChooserLoader.item.selectedNameFilter = filterName
fileChooserLoader.item.accepted.connect(function() { sendMediaSheet.sendFile(Kaidan.messageModel.chatPartner, fileChooserLoader.item.fileUrl) })
if (title !== undefined)
fileChooserLoader.item.title = title
fileChooserLoader.item.open()
......
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