diff --git a/coreapi/chat.c b/coreapi/chat.c index 94a184b16..a6f2a952d 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -1136,7 +1136,7 @@ void linphone_chat_message_start_file_download(LinphoneChatMessage *message, Lin * Cancel an ongoing file transfer attached to this message.(upload or download) * @param msg #LinphoneChatMessage */ -void linphone_chat_room_cancel_file_transfer(LinphoneChatMessage *msg) { +void linphone_chat_message_cancel_file_transfer(LinphoneChatMessage *msg) { ms_message("Cancelled file transfer %s - msg [%p] chat room[%p]", (msg->external_body_url==NULL)?linphone_core_get_file_transfer_server(msg->chat_room->lc):msg->external_body_url, msg, msg->chat_room); /* TODO: here we shall call the cancel http request from bellesip API when it is available passing msg->http_request */ /* waiting for this API, just set to NULL the reference to the request in the message and any request */ diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 211e29982..33dd95df2 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -1456,7 +1456,7 @@ LINPHONE_PUBLIC const char* linphone_chat_message_get_external_body_url(const Li LINPHONE_PUBLIC void linphone_chat_message_set_external_body_url(LinphoneChatMessage* message,const char* url); LINPHONE_PUBLIC const LinphoneContent* linphone_chat_message_get_file_transfer_information(const LinphoneChatMessage* message); LINPHONE_PUBLIC void linphone_chat_message_start_file_download(LinphoneChatMessage* message, LinphoneChatMessageStateChangedCb status_cb, void* ud); -LINPHONE_PUBLIC void linphone_chat_room_cancel_file_transfer(LinphoneChatMessage* msg); +LINPHONE_PUBLIC void linphone_chat_message_cancel_file_transfer(LinphoneChatMessage* msg); LINPHONE_PUBLIC const char* linphone_chat_message_get_appdata(const LinphoneChatMessage* message); LINPHONE_PUBLIC void linphone_chat_message_set_appdata(LinphoneChatMessage* message, const char* data); LINPHONE_PUBLIC const char* linphone_chat_message_get_text(const LinphoneChatMessage* message);