From 784e8b04bc510e18a75f8f696713366bc00f3cab Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 22 Oct 2010 10:25:12 +0100
Subject: Ignore message errors for CSN.

Resolves: #636
Release-Notes: You will no longer see your contacts typing if there is an error sending typing notifications to them.

diff --git a/Swiften/Chat/ChatStateTracker.cpp b/Swiften/Chat/ChatStateTracker.cpp
index 985f04a..2afcf67 100644
--- a/Swiften/Chat/ChatStateTracker.cpp
+++ b/Swiften/Chat/ChatStateTracker.cpp
@@ -12,6 +12,9 @@ ChatStateTracker::ChatStateTracker() {
 }
 
 void ChatStateTracker::handleMessageReceived(boost::shared_ptr<Message> message) {
+	if (message->getType() == Message::Error) {
+		return;
+	}
 	boost::shared_ptr<ChatState> statePayload = message->getPayload<ChatState>();
 	if (statePayload) {
 		changeState(statePayload->getChatState());;
-- 
cgit v0.10.2-6-g49f6