From 1a2830588131173d8fbfeb1fe03c466b4cf30e46 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 30 Nov 2016 16:49:11 +0300 Subject: juick-core: fix attachment serialization --- .../src/main/java/com/juick/xmpp/extensions/JuickMessage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-xmpp/src/main/java/com') diff --git a/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java b/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java index 2c3875c5..18477b2a 100644 --- a/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java +++ b/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java @@ -86,7 +86,7 @@ public class JuickMessage extends com.juick.Message implements StanzaChild { if (ts != null) { jmsg.setDate(df.parse(ts)); } - jmsg.AttachmentType = parser.getAttributeValue(null, "attach"); + jmsg.setAttachmentType(parser.getAttributeValue(null, "attach")); while (parser.next() == XmlPullParser.START_TAG) { final String tag = parser.getName(); @@ -128,8 +128,8 @@ public class JuickMessage extends com.juick.Message implements StanzaChild { if (getDate() != null) { ret += " ts=\"" + df.format(getDate()) + "\""; } - if (AttachmentType != null) { - ret += " attach=\"" + AttachmentType + "\""; + if (getAttachmentType() != null) { + ret += " attach=\"" + getAttachmentType() + "\""; } ret += ">"; if (getUser() != null) { -- cgit v1.2.3