Commit 94ff0564 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Improved linphone_chat_message_is_text and linphone_chat_message_is_file_transfer

parent 6d3d535f
...@@ -301,11 +301,11 @@ LinphoneReason linphone_chat_message_get_reason(LinphoneChatMessage *msg) { ...@@ -301,11 +301,11 @@ LinphoneReason linphone_chat_message_get_reason(LinphoneChatMessage *msg) {
} }
bool_t linphone_chat_message_is_file_transfer(LinphoneChatMessage *msg) { bool_t linphone_chat_message_is_file_transfer(LinphoneChatMessage *msg) {
return LinphonePrivate::ContentType(linphone_chat_message_get_content_type(msg)) == LinphonePrivate::ContentType::FileTransfer; return L_GET_PRIVATE_FROM_C_OBJECT(msg)->hasFileTransferContent();
} }
bool_t linphone_chat_message_is_text(LinphoneChatMessage *msg) { bool_t linphone_chat_message_is_text(LinphoneChatMessage *msg) {
return LinphonePrivate::ContentType(linphone_chat_message_get_content_type(msg)) == LinphonePrivate::ContentType::PlainText; return L_GET_PRIVATE_FROM_C_OBJECT(msg)->hasTextContent();
} }
const char *linphone_chat_message_state_to_string(const LinphoneChatMessageState state) { const char *linphone_chat_message_state_to_string(const LinphoneChatMessageState state) {
......
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