mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-22 07:28:32 +00:00
Fixed sent message getText() and getContentType() values
This commit is contained in:
parent
637595573d
commit
3b4e32cb8e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue