summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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());;