From f67f319854e53f326225e1bddb6a27c1cfc17d29 Mon Sep 17 00:00:00 2001 From: Arnav Rawat Date: Sun, 24 Jan 2021 20:38:40 +0000 Subject: [PATCH] Fix sending attachments/files This commit lets attachments be sent by themselves and prevents a crash when a text message is sent with an attachment --- imports/NeoChat/Component/ChatTextInput.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/NeoChat/Component/ChatTextInput.qml b/imports/NeoChat/Component/ChatTextInput.qml index 29249dc3c..a2447978b 100644 --- a/imports/NeoChat/Component/ChatTextInput.qml +++ b/imports/NeoChat/Component/ChatTextInput.qml @@ -548,7 +548,7 @@ ToolBar { icon.name: "document-send" icon.color: "transparent" - enabled: inputField.length > 0 + enabled: inputField.length > 0 || hasAttachment onClicked: { inputField.postMessage()