Commit 95ab4ff5 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed broken compil due to dumb mistake

parent bcfa66e4
......@@ -179,6 +179,7 @@ void ChatMessagePrivate::setContentType (const ContentType &contentType) {
}
const string &ChatMessagePrivate::getText () {
L_Q();
if (direction == ChatMessage::Direction::Incoming) {
if (contents.size() > 0) {
Content content = contents.front();
......@@ -187,8 +188,8 @@ const string &ChatMessagePrivate::getText () {
cText = internalContent.getBodyAsString();
}
} else {
if (hasTextContent()) {
cText = getTextContent.getBodyAsString();
if (q->hasTextContent()) {
cText = q->getTextContent().getBodyAsString();
} else if (!internalContent.isEmpty()) {
cText = internalContent.getBodyAsString();
} else {
......
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