Commit 61d11efd authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed idmn, composing etc... messages trying to be file uploaded...

parent c6894b4c
......@@ -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) {
......
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