From 80856b853b49b53322425a90ae801bca760cf740 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 7 Aug 2021 21:36:51 +0000 Subject: Use `dc_send_msg` to send messages `dc_send_text_msg` is too limited as it can only send text without attachments. --- context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'context.h') diff --git a/context.h b/context.h index 235bd28..b3eb02f 100644 --- a/context.h +++ b/context.h @@ -52,6 +52,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); Q_INVOKABLE void importBackup(QString tarfile); private: -- cgit v1.2.3-70-g09d2