diff options
Diffstat (limited to 'context.cpp')
-rw-r--r-- | context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/context.cpp b/context.cpp index a92c0c2..f3e698a 100644 --- a/context.cpp +++ b/context.cpp @@ -192,7 +192,7 @@ Context::sendTextMessage(uint32_t chatId, QString textToSend) void Context::setDraft(uint32_t chatId, DcMessage *message) { - dc_set_draft(m_context, chatId, message->m_message); + dc_set_draft(m_context, chatId, message ? message->m_message : nullptr); } DcMessage * |