mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fixed multiple file transfer in same message issue
This commit is contained in:
parent
b537254c7b
commit
90ca06096c
1 changed files with 7 additions and 2 deletions
|
|
@ -310,8 +310,13 @@ void FileTransferChatMessageModifier::processResponseFromPostFile (const belle_h
|
|||
FileTransferContent *fileTransferContent = nullptr;
|
||||
for (Content *c : message->getPrivate()->getContents()) {
|
||||
if (c->isFileTransfer()) {
|
||||
fileTransferContent = static_cast<FileTransferContent *>(c);
|
||||
break;
|
||||
FileTransferContent *tmpContent = static_cast<FileTransferContent *>(c);
|
||||
if (!tmpContent->getFileContent() && tmpContent->getSize() == 0) {
|
||||
// If FileTransferContent doesn't have a FileContent yet and is empty
|
||||
// It's the one we seek, otherwise it may be a previous uploaded FileTransferContent
|
||||
fileTransferContent = tmpContent;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue