Commit 9f9da0fd authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Fixed ChatMessage getContentType()

parent 097732c1
...@@ -140,7 +140,7 @@ string ChatMessagePrivate::getSalCustomHeaderValue(const string& name) { ...@@ -140,7 +140,7 @@ string ChatMessagePrivate::getSalCustomHeaderValue(const string& name) {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
const string& ChatMessagePrivate::getContentType() { const string& ChatMessagePrivate::getContentType() {
if (!internalContent.isEmpty()) { if (!internalContent.getContentType().asString().empty()) {
cContentType = internalContent.getContentType().asString(); cContentType = internalContent.getContentType().asString();
} else { } else {
if (contents.size() > 0) { if (contents.size() > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment