aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/context.cpp b/context.cpp
index 1fa24af..802a555 100644
--- a/context.cpp
+++ b/context.cpp
@@ -267,12 +267,8 @@ Context::newMessage(int viewtype)
}
uint32_t
-Context::sendMessage(uint32_t chatId, DcMessage *message, QString attachment)
+Context::sendMessage(uint32_t chatId, DcMessage *message)
{
- if (!attachment.isEmpty()) {
- QByteArray utf8attachFilename = attachment.toUtf8();
- dc_msg_set_file(message->m_message, utf8attachFilename.constData(), NULL);
- }
return dc_send_msg(m_context, chatId, message->m_message);
}