diff --git a/include/linphone/api/c-chat-message.h b/include/linphone/api/c-chat-message.h index 75445e0b5..f028464a2 100644 --- a/include/linphone/api/c-chat-message.h +++ b/include/linphone/api/c-chat-message.h @@ -363,11 +363,11 @@ LINPHONE_PUBLIC bool_t linphone_chat_message_has_text_content(const LinphoneChat LINPHONE_PUBLIC const char* linphone_chat_message_get_text_content(const LinphoneChatMessage *msg); /** - * Gets whether or not a received file is currently being downloaded + * Gets whether or not a file is currently being downloaded or uploaded * @param[in] msg LinphoneChatMessage object - * @return true if download is in progress, false otherwise + * @return true if download or upload is in progress, false otherwise */ -LINPHONE_PUBLIC bool_t linphone_chat_message_is_download_in_progress(LinphoneChatMessage *msg); +LINPHONE_PUBLIC bool_t linphone_chat_message_is_file_transfer_in_progress(LinphoneChatMessage *msg); /** * @} diff --git a/src/c-wrapper/api/c-chat-message.cpp b/src/c-wrapper/api/c-chat-message.cpp index 693a1789a..333d6a94e 100644 --- a/src/c-wrapper/api/c-chat-message.cpp +++ b/src/c-wrapper/api/c-chat-message.cpp @@ -242,8 +242,8 @@ const char *linphone_chat_message_get_text_content(const LinphoneChatMessage *ms return L_STRING_TO_C(msg->cache.textContentBody); } -bool_t linphone_chat_message_is_download_in_progress(LinphoneChatMessage *msg) { - return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->isDownloadInProgress(); +bool_t linphone_chat_message_is_file_transfer_in_progress(LinphoneChatMessage *msg) { + return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->isFileTransferInProgress(); } // ============================================================================= diff --git a/src/chat/chat-message/chat-message.cpp b/src/chat/chat-message/chat-message.cpp index 6f50162b4..dd6fa43f9 100644 --- a/src/chat/chat-message/chat-message.cpp +++ b/src/chat/chat-message/chat-message.cpp @@ -1040,7 +1040,7 @@ bool ChatMessage::downloadFile(FileTransferContent &fileTransferContent) { return d->fileTransferChatMessageModifier.downloadFile(getSharedFromThis(), &fileTransferContent); } -bool ChatMessage::isDownloadInProgress() { +bool ChatMessage::isFileTransferInProgress() { L_D(); return d->fileTransferChatMessageModifier.isFileTransferInProgressAndValid(); } diff --git a/src/chat/chat-message/chat-message.h b/src/chat/chat-message/chat-message.h index 501fb2b83..961455882 100644 --- a/src/chat/chat-message/chat-message.h +++ b/src/chat/chat-message/chat-message.h @@ -106,7 +106,7 @@ public: void removeCustomHeader (const std::string &headerName); bool downloadFile (FileTransferContent &content); - bool isDownloadInProgress(); + bool isFileTransferInProgress(); private: ChatMessage (const std::shared_ptr &chatRoom, ChatMessage::Direction direction);