1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-16 12:12:06 +01:00

Use optElement() instead of optAppend() in StreamInitiation.toXML()

This commit is contained in:
Florian Schmaus 2019-09-24 23:29:26 +02:00
parent cf48f12565
commit c3247ef006

View file

@ -146,7 +146,7 @@ public class StreamInitiation extends IQ {
buf.rightAngleBracket(); buf.rightAngleBracket();
// Add the file section if there is one. // Add the file section if there is one.
buf.optAppend(file.toXML()); buf.optElement(file);
break; break;
case result: case result:
buf.rightAngleBracket(); buf.rightAngleBracket();