Forgot to set file size when creating the file transfer informations

This commit is contained in:
Sylvain Berfini 2017-11-07 15:55:10 +01:00
parent e97502299a
commit 1fa52f708e

View file

@ -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<char> empty(linphone_content_get_size(c_content));
content.setBody(empty);
q->addContent(content);
}