From 55d7b9d4ebe3832e4f69ec5b44bffead5ad57346 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Tue, 6 Oct 2020 14:57:25 +0200 Subject: [PATCH] Fix pubsub options rendering The exiting code generates an unintentional nested 'options' child element: ``` ``` This commit removes the undesired nesting, resulting in: ``` ``` --- .../org/jivesoftware/smackx/pubsub/OptionsExtension.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/OptionsExtension.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/OptionsExtension.java index 7249f9eea..df39053b5 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/OptionsExtension.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/OptionsExtension.java @@ -51,14 +51,9 @@ public class OptionsExtension extends NodeExtension { @Override protected void addXml(XmlStringBuilder xml) { - xml.rightAngleBracket(); - - xml.halfOpenElement(getElementName()); xml.attribute("jid", jid); - xml.optAttribute("node", getNode()); xml.optAttribute("subid", id); xml.closeEmptyElement(); - xml.closeElement(this); } }