1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 09:42:06 +01:00

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

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