forked from blue/squawk
keeping up with qxmpp
This commit is contained in:
parent
73d83f55af
commit
3c6b611a41
10 changed files with 146 additions and 153 deletions
|
@ -29,6 +29,35 @@ Core::MessageHandler::MessageHandler(Core::Account* account):
|
|||
|
||||
void Core::MessageHandler::onMessageReceived(const QXmppMessage& msg)
|
||||
{
|
||||
#if (QXMPP_VERSION) >= QT_VERSION_CHECK(1, 5, 0)
|
||||
#ifdef WITH_OMEMO
|
||||
switch (msg.encryptionMethod()) {
|
||||
case QXmpp::NoEncryption:
|
||||
break; //just do nothing
|
||||
case QXmpp::UnknownEncryption:
|
||||
qDebug() << "Account" << acc->getName() << "received a message with unknown encryption type";
|
||||
break; //let it go the way it is, there is nothing I can do here
|
||||
case QXmpp::Otr:
|
||||
qDebug() << "Account" << acc->getName() << "received an OTR encrypted message, not supported yet";
|
||||
break; //let it go the way it is, there is nothing I can do yet
|
||||
case QXmpp::LegacyOpenPgp:
|
||||
qDebug() << "Account" << acc->getName() << "received an LegacyOpenPgp encrypted message, not supported yet";
|
||||
break; //let it go the way it is, there is nothing I can do yet
|
||||
case QXmpp::Ox:
|
||||
qDebug() << "Account" << acc->getName() << "received an Ox encrypted message, not supported yet";
|
||||
break; //let it go the way it is, there is nothing I can do yet
|
||||
case QXmpp::Omemo0:
|
||||
qDebug() << "Account" << acc->getName() << "received an Omemo0 encrypted message, not supported yet";
|
||||
break; //let it go the way it is, there is nothing I can do yet
|
||||
case QXmpp::Omemo1:
|
||||
qDebug() << "Account" << acc->getName() << "received an Omemo1 encrypted message, not supported yet";
|
||||
break; //let it go the way it is, there is nothing I can do yet
|
||||
case QXmpp::Omemo2:
|
||||
qDebug() << "Account" << acc->getName() << "received an Omemo2 encrypted message, not supported yet";
|
||||
break; //let it go the way it is, there is nothing I can do yet
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
bool handled = false;
|
||||
switch (msg.type()) {
|
||||
case QXmppMessage::Normal:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue