summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-22 09:25:12 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-22 09:25:12 (GMT)
commit784e8b04bc510e18a75f8f696713366bc00f3cab (patch)
treec2f37182f088639cb14000a78320eaff041383ba /Swiften/Chat/ChatStateTracker.cpp
parentaf61db1e108d17afcf84a97492dd6b79426688ec (diff)
downloadswift-784e8b04bc510e18a75f8f696713366bc00f3cab.zip
swift-784e8b04bc510e18a75f8f696713366bc00f3cab.tar.bz2
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.
Diffstat (limited to 'Swiften/Chat/ChatStateTracker.cpp')
-rw-r--r--Swiften/Chat/ChatStateTracker.cpp3
1 files changed, 3 insertions, 0 deletions
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());;