1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Fix StreamManagement.Failed.toXML()

Note that this method is currently not used by Smack, as XMPP clients
usually do not emit that Nonza.
This commit is contained in:
Florian Schmaus 2018-04-07 23:10:58 +02:00
parent d275d9a7da
commit 270e378287

View file

@ -225,10 +225,11 @@ public class StreamManagement {
if (condition == null && textElements.isEmpty()) {
xml.closeEmptyElement();
} else {
xml.rightAngleBracket();
if (condition != null) {
xml.rightAngleBracket();
xml.append(condition.toString());
xml.xmlnsAttribute(StanzaError.NAMESPACE);
xml.closeEmptyElement();
}
xml.append(textElements);
xml.closeElement(ELEMENT);