Fix PrivateDataResult.getChildElementXML()

that method never worked correctly since 11 years, ie. the PrivateData
was never added as element text. It's not surprisingly that this was not
discovered in more then a decade, since Smack usually never *sends*
those stanza but only receives them.

But that's no reason to not fix it. :)
This commit is contained in:
Florian Schmaus 2014-06-18 19:45:14 +02:00
parent 298822eaef
commit 2ce7656180
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ public class PrivateDataManager extends Manager {
StringBuilder buf = new StringBuilder();
buf.append("<query xmlns=\"jabber:iq:private\">");
if (privateData != null) {
privateData.toXML();
buf.append(privateData.toXML());
}
buf.append("</query>");
return buf.toString();