From 3b4e32cb8e7d15add5f8c04fdbd043ecf557ba1d Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 30 Oct 2017 15:17:26 +0100 Subject: [PATCH] Fixed sent message getText() and getContentType() values --- src/chat/chat-message/chat-message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/chat-message/chat-message.cpp b/src/chat/chat-message/chat-message.cpp index 6253922f5..1c0eeef27 100644 --- a/src/chat/chat-message/chat-message.cpp +++ b/src/chat/chat-message/chat-message.cpp @@ -1201,11 +1201,11 @@ void ChatMessagePrivate::send() { } //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 */ setText(clearTextMessage); } - if (getContentType().isValid() && (getContentType() == clearTextContentType)) { + if (getContentType().isValid() && (getContentType() != clearTextContentType)) { /* We replace the encrypted content type by the original one */ setContentType(clearTextContentType); }