mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Forgot to set file size when creating the file transfer informations
This commit is contained in:
parent
e97502299a
commit
1fa52f708e
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue