diff --git a/src/qml/Chat/Composer.qml b/src/qml/Chat/Composer.qml index 7df61e27..f2f06d84 100644 --- a/src/qml/Chat/Composer.qml +++ b/src/qml/Chat/Composer.qml @@ -216,6 +216,7 @@ Rectangle { HFileDialogOpener { dialog.title: qsTr("Select files to upload") onFileChanged: { + if (! file) return let path = Qt.resolvedUrl(file).replace(/^file:/, "") let args = [chatPage.roomId, path] py.callClientCoro(chatPage.userId, "send_file", args)