From cb9a11b74e425ffa0c74778d12d1f7a2c6a0542c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 9 May 2018 16:52:22 +0200 Subject: [PATCH] Fix Forwarded.toXml(String): Set the correct enclosing XML namespace --- .../java/org/jivesoftware/smackx/forward/packet/Forwarded.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/forward/packet/Forwarded.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/forward/packet/Forwarded.java index 81e0d4594..c4a579791 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/forward/packet/Forwarded.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/forward/packet/Forwarded.java @@ -70,7 +70,7 @@ public class Forwarded implements ExtensionElement { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.optElement(getDelayInformation()); - xml.append(forwardedPacket.toXML(null)); + xml.append(forwardedPacket.toXML(NAMESPACE)); xml.closeElement(this); return xml; }