Commit ba565584 authored by Linus Jahn's avatar Linus Jahn

Ignore error messages

parent 0eb3a512
...@@ -91,7 +91,7 @@ MessageHandler::~MessageHandler() ...@@ -91,7 +91,7 @@ MessageHandler::~MessageHandler()
void MessageHandler::handleMessage(const QXmppMessage &msg) void MessageHandler::handleMessage(const QXmppMessage &msg)
{ {
if (msg.body().isEmpty()) if (msg.body().isEmpty() || msg.type() == QXmppMessage::Error)
return; return;
Message message; Message message;
......
...@@ -162,7 +162,7 @@ void RosterManager::handleSendMessage(const QString &jid, const QString &message ...@@ -162,7 +162,7 @@ void RosterManager::handleSendMessage(const QString &jid, const QString &message
void RosterManager::handleMessage(const QXmppMessage &msg) void RosterManager::handleMessage(const QXmppMessage &msg)
{ {
if (msg.body().isEmpty()) if (msg.body().isEmpty() || msg.type() == QXmppMessage::Error)
return; return;
// msg.from() can be our JID, if it's a carbon/forward from another client // msg.from() can be our JID, if it's a carbon/forward from another client
......
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