From 021d00d9d9148be3c5969ac7834403c695f9258d Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: 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. --- context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'context.h') diff --git a/context.h b/context.h index 95b3275..4e6409a 100644 --- a/context.h +++ b/context.h @@ -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: -- cgit v1.2.3-70-g09d2