diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-22 09:25:12 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-22 09:25:12 (GMT) |
commit | 784e8b04bc510e18a75f8f696713366bc00f3cab (patch) | |
tree | c2f37182f088639cb14000a78320eaff041383ba | |
parent | af61db1e108d17afcf84a97492dd6b79426688ec (diff) | |
download | swift-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.
-rw-r--r-- | Swiften/Chat/ChatStateTracker.cpp | 3 |
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());; |