aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-30 16:49:11 +0300
committerGravatar Vitaly Takmazov2016-11-30 16:49:11 +0300
commit1a2830588131173d8fbfeb1fe03c466b4cf30e46 (patch)
tree53889640b356f22e6620acffed0bda1e56babcf6 /juick-xmpp/src/main
parentf5fd9c7bea380eb4c0c2d58f2167ad3f07c45c33 (diff)
juick-core: fix attachment serialization
Diffstat (limited to 'juick-xmpp/src/main')
-rw-r--r--juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java6
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 2c3875c5d..18477b2a8 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) {