From dbb5beeeb522bd937f235c619321594a25247749 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Fri, 1 Jun 2012 09:10:00 +0100 Subject: Don't send non-integer 'h' attributes on 'a' elements 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) 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(); } } -- cgit v0.10.2-6-g49f6