Commit 3b4e32cb authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed sent message getText() and getContentType() values

parent 63759557
...@@ -1201,11 +1201,11 @@ void ChatMessagePrivate::send() { ...@@ -1201,11 +1201,11 @@ void ChatMessagePrivate::send() {
} }
//TODO Remove : This won't be necessary once we store the contentsList //TODO Remove : This won't be necessary once we store the contentsList
if (!getText().empty() && getText() == clearTextMessage) { if (!getText().empty() && getText() != clearTextMessage) {
/* We replace the encrypted message by the original one so it can be correctly stored and displayed by the application */ /* We replace the encrypted message by the original one so it can be correctly stored and displayed by the application */
setText(clearTextMessage); setText(clearTextMessage);
} }
if (getContentType().isValid() && (getContentType() == clearTextContentType)) { if (getContentType().isValid() && (getContentType() != clearTextContentType)) {
/* We replace the encrypted content type by the original one */ /* We replace the encrypted content type by the original one */
setContentType(clearTextContentType); setContentType(clearTextContentType);
} }
......
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