diff options
author | Vitaly Takmazov | 2016-11-30 16:49:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-30 16:49:11 +0300 |
commit | 1a2830588131173d8fbfeb1fe03c466b4cf30e46 (patch) | |
tree | 53889640b356f22e6620acffed0bda1e56babcf6 /juick-xmpp | |
parent | f5fd9c7bea380eb4c0c2d58f2167ad3f07c45c33 (diff) |
juick-core: fix attachment serialization
Diffstat (limited to 'juick-xmpp')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |