mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 15:48:09 +00:00
Fixed idmn, composing etc... messages trying to be file uploaded...
This commit is contained in:
parent
c6894b4c86
commit
61d11efdc7
1 changed files with 9 additions and 4 deletions
|
|
@ -1188,10 +1188,15 @@ void ChatMessagePrivate::send () {
|
|||
currentFileTransferContent = nullptr;
|
||||
for (Content &content : contents) {
|
||||
ContentType contentType = content.getContentType();
|
||||
if (contentType != ContentType::FileTransfer && contentType != ContentType::PlainText) {
|
||||
lInfo() << "Found content with content type " << contentType.asString() << ", set it for file upload";
|
||||
currentFileTransferContent = &content;
|
||||
break;
|
||||
//TODO Improve !
|
||||
if (contentType != ContentType::FileTransfer && contentType != ContentType::PlainText &&
|
||||
contentType != ContentType::ExternalBody && contentType != ContentType::Imdn &&
|
||||
contentType != ContentType::ImIsComposing && contentType != ContentType::ResourceLists &&
|
||||
contentType != ContentType::Sdp && contentType != ContentType::ConferenceInfo &&
|
||||
contentType != ContentType::Cpim) {
|
||||
lInfo() << "Found content with type " << contentType.asString() << ", set it for file upload";
|
||||
currentFileTransferContent = &content;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (currentFileTransferContent != nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue