mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
Deprecated getText() on ChatMessage + attempt to fix getText()
This commit is contained in:
parent
f18fcbdf2f
commit
bcfa66e447
3 changed files with 5 additions and 2 deletions
|
|
@ -135,6 +135,7 @@ LINPHONE_PUBLIC void linphone_chat_message_set_content_type(LinphoneChatMessage
|
|||
/**
|
||||
* Get text part of this message
|
||||
* @return text or NULL if no text.
|
||||
* @deprecated use getTextContent() instead
|
||||
*/
|
||||
LINPHONE_PUBLIC const char* linphone_chat_message_get_text(LinphoneChatMessage* msg);
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public:
|
|||
std::string getSalCustomHeaderValue(const std::string& name);
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Methods only used for C wrapper
|
||||
// Methods only used for C wrapper, to be removed some day...
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
const ContentType &getContentType();
|
||||
|
|
|
|||
|
|
@ -187,7 +187,9 @@ const string &ChatMessagePrivate::getText () {
|
|||
cText = internalContent.getBodyAsString();
|
||||
}
|
||||
} else {
|
||||
if (!internalContent.isEmpty()) {
|
||||
if (hasTextContent()) {
|
||||
cText = getTextContent.getBodyAsString();
|
||||
} else if (!internalContent.isEmpty()) {
|
||||
cText = internalContent.getBodyAsString();
|
||||
} else {
|
||||
if (contents.size() > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue