mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +01:00
Include error element in #toXML. SMACK-50
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2468 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
2b9b152743
commit
be8535765a
1 changed files with 6 additions and 0 deletions
|
@ -195,6 +195,12 @@ public class Presence extends Packet {
|
|||
|
||||
buf.append(this.getExtensionsXML());
|
||||
|
||||
// Add the error sub-packet, if there is one.
|
||||
XMPPError error = getError();
|
||||
if (error != null) {
|
||||
buf.append(error.toXML());
|
||||
}
|
||||
|
||||
buf.append("</presence>");
|
||||
|
||||
return buf.toString();
|
||||
|
|
Loading…
Reference in a new issue