From 19a445ea029674958f17674b5756e0d13fed68f5 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 6 Apr 2018 19:32:44 +0200 Subject: [PATCH] Remove unnecessary check in ChatStateManager --- .../org/jivesoftware/smackx/chatstates/ChatStateManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/chatstates/ChatStateManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/chatstates/ChatStateManager.java index 76d95813e..3570b6be3 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/chatstates/ChatStateManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/chatstates/ChatStateManager.java @@ -136,10 +136,6 @@ public final class ChatStateManager extends Manager { Chat chat = ChatManager.getInstanceFor(connection()).chatWith(bareFrom); ExtensionElement extension = message.getExtension(NAMESPACE); - if (extension == null) { - return; - } - ChatState state; try { state = ChatState.valueOf(extension.getElementName());