Vitelity's s.ms service requires <body> first

If the <body> tag is not first, their bot just silently drops the
stanza.  I know we shouldn't have to care about order, and I'm trying to
get them to fix it, but it's not high-priority for them since "most"
clients seem to work, so I'd like this workaround in.
This commit is contained in:
Stephen Paul Weber 2015-02-15 14:18:41 -05:00
parent 0485da8488
commit 00fa6f89d6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public class MessagePacket extends AbstractStanza {
this.children.remove(findChild("body")); this.children.remove(findChild("body"));
Element body = new Element("body"); Element body = new Element("body");
body.setContent(text); body.setContent(text);
this.children.add(body); this.children.add(0, body);
} }
public void setType(int type) { public void setType(int type) {