Commit ba565584 authored by LNJ's avatar LNJ 💬

Ignore error messages

parent 0eb3a512
......@@ -91,7 +91,7 @@ MessageHandler::~MessageHandler()
void MessageHandler::handleMessage(const QXmppMessage &msg)
{
if (msg.body().isEmpty())
if (msg.body().isEmpty() || msg.type() == QXmppMessage::Error)
return;
Message message;
......
......@@ -162,7 +162,7 @@ void RosterManager::handleSendMessage(const QString &jid, const QString &message
void RosterManager::handleMessage(const QXmppMessage &msg)
{
if (msg.body().isEmpty())
if (msg.body().isEmpty() || msg.type() == QXmppMessage::Error)
return;
// 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