Fix PubSub Affiliation getElementName()

must return 'affiliation', not 'subscription'.

Fixes SMACK-705.
This commit is contained in:
Florian Schmaus 2015-12-03 08:17:19 +01:00
parent 6739b74ff9
commit 3c74ef2fd2
1 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ import org.jivesoftware.smack.packet.ExtensionElement;
*/ */
public class Affiliation implements ExtensionElement public class Affiliation implements ExtensionElement
{ {
public static final String ELEMENT = "affiliation";
protected String node; protected String node;
protected Type type; protected Type type;
@ -63,7 +65,7 @@ public class Affiliation implements ExtensionElement
public String getElementName() public String getElementName()
{ {
return "subscription"; return ELEMENT;
} }
public String getNamespace() public String getNamespace()