diff options
author | link2xt <link2xt@testrun.org> | 2021-08-07 21:36:51 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-08-07 21:36:51 +0000 |
commit | 80856b853b49b53322425a90ae801bca760cf740 (patch) | |
tree | c6eedce43d428d728fbd122ad43057b35138028f /context.cpp | |
parent | 541cfbdad5596e55b686abd02a93638f0a7f75f6 (diff) | |
download | kdeltachat-80856b853b49b53322425a90ae801bca760cf740.tar.gz kdeltachat-80856b853b49b53322425a90ae801bca760cf740.zip |
Use `dc_send_msg` to send messages
`dc_send_text_msg` is too limited as it can only send text without attachments.
Diffstat (limited to 'context.cpp')
-rw-r--r-- | context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp index 4c9163d..7c0bcc3 100644 --- a/context.cpp +++ b/context.cpp @@ -250,6 +250,12 @@ Context::newMessage(int viewtype) return new DcMessage{message}; } +uint32_t +Context::sendMessage(uint32_t chatId, DcMessage *message) +{ + return dc_send_msg(m_context, chatId, message->m_message); +} + void Context::importBackup(QString tarfile) { |