Commit 1fa52f70 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Forgot to set file size when creating the file transfer informations

parent e9750229
...@@ -225,6 +225,11 @@ void ChatMessagePrivate::setFileTransferInformation (const LinphoneContent *c_co ...@@ -225,6 +225,11 @@ void ChatMessagePrivate::setFileTransferInformation (const LinphoneContent *c_co
content.setBody(linphone_content_get_string_buffer(c_content)); content.setBody(linphone_content_get_string_buffer(c_content));
} }
content.setContentDisposition(linphone_content_get_name(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<char> empty(linphone_content_get_size(c_content));
q->addContent(content); q->addContent(content);
} }
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