summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-06-01 08:10:00 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-06-01 08:10:00 (GMT)
commitdbb5beeeb522bd937f235c619321594a25247749 (patch)
treeda7ff2e03a0a2fcb4ab6ba512769f52d5682ac9f /src/com
parent5129d90b45f0862cd44ccf2904ae72d37c6fa0f1 (diff)
downloadstroke-dbb5beeeb522bd937f235c619321594a25247749.zip
stroke-dbb5beeeb522bd937f235c619321594a25247749.tar.bz2
Don't send non-integer 'h' attributes on 'a' elements
Diffstat (limited to 'src/com')
-rw-r--r--src/com/isode/stroke/serializer/StanzaAckSerializer.java2
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();
}
}