From 1fa52f708e6b09d3071907eea6777081f59a7f22 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 7 Nov 2017 15:55:10 +0100 Subject: [PATCH] Forgot to set file size when creating the file transfer informations --- src/chat/chat-message/chat-message.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chat/chat-message/chat-message.cpp b/src/chat/chat-message/chat-message.cpp index b5b7a7a08..cbe40188e 100644 --- a/src/chat/chat-message/chat-message.cpp +++ b/src/chat/chat-message/chat-message.cpp @@ -225,6 +225,11 @@ void ChatMessagePrivate::setFileTransferInformation (const LinphoneContent *c_co content.setBody(linphone_content_get_string_buffer(c_content)); } content.setContentDisposition(linphone_content_get_name(c_content)); + + // This is a ugly workaround required to be able to get the total size of the file in the content + vector empty(linphone_content_get_size(c_content)); + content.setBody(empty); + q->addContent(content); }