mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
Fixed issue with encryption
This commit is contained in:
parent
8cd317c30a
commit
2156bb3d45
1 changed files with 4 additions and 6 deletions
|
|
@ -239,10 +239,9 @@ const ContentType &ChatMessagePrivate::getContentType () {
|
|||
|
||||
void ChatMessagePrivate::setContentType (const ContentType &contentType) {
|
||||
if (contents.size() > 0 && internalContent.getContentType().isEmpty() && internalContent.isEmpty()) {
|
||||
contents.front()->setContentType(contentType);
|
||||
} else {
|
||||
internalContent.setContentType(contentType);
|
||||
internalContent.setBody(contents.front()->getBody());
|
||||
}
|
||||
internalContent.setContentType(contentType);
|
||||
}
|
||||
|
||||
const string &ChatMessagePrivate::getText () {
|
||||
|
|
@ -272,10 +271,9 @@ const string &ChatMessagePrivate::getText () {
|
|||
|
||||
void ChatMessagePrivate::setText (const string &text) {
|
||||
if (contents.size() > 0 && internalContent.getContentType().isEmpty() && internalContent.isEmpty()) {
|
||||
contents.front()->setBody(text);
|
||||
} else {
|
||||
internalContent.setBody(text);
|
||||
internalContent.setContentType(contents.front()->getContentType());
|
||||
}
|
||||
internalContent.setBody(text);
|
||||
}
|
||||
|
||||
LinphoneContent *ChatMessagePrivate::getFileTransferInformation () const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue