diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-06-01 08:10:00 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-06-01 08:10:00 (GMT) |
commit | dbb5beeeb522bd937f235c619321594a25247749 (patch) | |
tree | da7ff2e03a0a2fcb4ab6ba512769f52d5682ac9f | |
parent | 5129d90b45f0862cd44ccf2904ae72d37c6fa0f1 (diff) | |
download | stroke-dbb5beeeb522bd937f235c619321594a25247749.zip stroke-dbb5beeeb522bd937f235c619321594a25247749.tar.bz2 |
Don't send non-integer 'h' attributes on 'a' elements
-rw-r--r-- | src/com/isode/stroke/serializer/StanzaAckSerializer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/isode/stroke/serializer/StanzaAckSerializer.java b/src/com/isode/stroke/serializer/StanzaAckSerializer.java index 4eba66e..a909164 100644 --- a/src/com/isode/stroke/serializer/StanzaAckSerializer.java +++ b/src/com/isode/stroke/serializer/StanzaAckSerializer.java @@ -22,7 +22,7 @@ class StanzaAckSerializer extends GenericElementSerializer<StanzaAck> { StanzaAck stanzaAck = (StanzaAck) element; assert stanzaAck.isValid(); XMLElement result = new XMLElement("a", "urn:xmpp:sm:2"); - result.setAttribute("h", Double.toString(stanzaAck.getHandledStanzasCount())); + result.setAttribute("h", Long.toString(stanzaAck.getHandledStanzasCount())); return result.serialize(); } } |