From kde-commits Sat Oct 03 12:29:00 2009 From: Michael Zanetti Date: Sat, 03 Oct 2009 12:29:00 +0000 To: kde-commits Subject: KDE/kdenetwork/kopete/plugins/otr Message-Id: <1254572940.928278.28432.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125457294632247 SVN commit 1030885 by mzanetti: Committing patch from Florian Reinhard Fixes incoming file-transfers during OTR sessions. BUG: 183005 CCMAIL: florian.reinhard@googlemail.com M +6 -0 otrplugin.cpp --- trunk/KDE/kdenetwork/kopete/plugins/otr/otrplugin.cpp #1030884:1030885 @@ -253,6 +253,12 @@ QMap messageCache = plugin->getMessageCache(); if( msg.direction() == Kopete::Message::Inbound ){ + if( msg.type() == Kopete::Message::TypeFileTransferRequest ) + { + // file transfers aren't encrypted. Proceed with next plugin + MessageHandler::handleMessage( event ); + return; + } QString body = msg.plainBody(); QString accountId = msg.manager()->account()->accountId(); QString contactId = msg.from()->contactId();