diff options
Diffstat (limited to 'qml')
-rw-r--r-- | qml/ComposePane.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qml/ComposePane.qml b/qml/ComposePane.qml index 5ba77f5..dab07f1 100644 --- a/qml/ComposePane.qml +++ b/qml/ComposePane.qml @@ -48,7 +48,12 @@ Pane { text: qsTr("Send") enabled: messageField.length > 0 onClicked: { - root.context.sendTextMessage(chatId, messageField.text) + let DC_MSG_TEXT = 10; + + let msg = root.context.newMessage(DC_MSG_TEXT); + msg.setText(messageField.text) + root.context.sendMessage(root.chatId, msg) + messageField.text = "" root.context.setDraft(chatId, null) } |