1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +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 static final String ELEMENT = "affiliation";
protected String node;
protected Type type;
@ -63,7 +65,7 @@ public class Affiliation implements ExtensionElement
public String getElementName()
{
return "subscription";
return ELEMENT;
}
public String getNamespace()