1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 12:37:58 +01:00

Remove unnecessary check in ChatStateManager

This commit is contained in:
Florian Schmaus 2018-04-06 19:32:44 +02:00
parent 9d53363413
commit 19a445ea02

View file

@ -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());