Commit 7018a708 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed old C API for file transfer

parent f1f84e7c
......@@ -286,6 +286,12 @@ LinphoneContent *ChatMessagePrivate::getFileTransferInformation () const {
if (hasFileTransferContent()) {
return getFileTransferContent()->toLinphoneContent();
}
for (const Content *c : contents) {
if (c->getContentType().isFile()) {
FileContent *fileContent = (FileContent *)c;
return fileContent->toLinphoneContent();
}
}
return NULL;
}
......
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