diff options
author | link2xt <link2xt@testrun.org> | 1970-01-01 00:00:00 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 1970-01-01 00:00:00 +0000 |
commit | 021d00d9d9148be3c5969ac7834403c695f9258d (patch) | |
tree | 7f3da0eeeb9b7f56b333af0fca5dd2a4795322b9 /context.h | |
parent | d4c66cd1341084b37dfabe3126d13ff8f062fd59 (diff) | |
download | kdeltachat-021d00d9d9148be3c5969ac7834403c695f9258d.tar.gz kdeltachat-021d00d9d9148be3c5969ac7834403c695f9258d.zip |
Add Message.setFile method
This allows setting file from JavaScript, so C++ remains a thin wrapper to Delta Chat core API.
sendMessage only calls dc_send_msg, and all the attachment logic goes to the JavaScript code.
Diffstat (limited to 'context.h')
-rw-r--r-- | context.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ public: Q_INVOKABLE QString getMessageInfo(uint32_t msgId); Q_INVOKABLE QString getMessageHtml(uint32_t msgId); Q_INVOKABLE DcMessage *newMessage(int viewtype); - Q_INVOKABLE uint32_t sendMessage(uint32_t chatId, DcMessage *message, QString attachment); + Q_INVOKABLE uint32_t sendMessage(uint32_t chatId, DcMessage *message); Q_INVOKABLE void importBackup(QString tarfile); private: |