aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main
diff options
context:
space:
mode:
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 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) {