Fixes for chat message when using custom content type and encryption

This commit is contained in:
Sylvain Berfini 2018-01-31 16:58:34 +01:00
parent 3cd16880aa
commit a64dc54e7a

View file

@ -655,6 +655,10 @@ void ChatMessagePrivate::send () {
}
}
// Remove internal content as it is not needed anymore and will confuse some old methods like getContentType()
internalContent.setBody("");
internalContent.setContentType(ContentType(""));
if (imdnId.empty())
setImdnMessageId(op->get_call_id()); /* must be known at that time */