aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/juick/json/Message.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/juick/json/Message.java b/src/com/juick/json/Message.java
index 18cc375e..70beda88 100644
--- a/src/com/juick/json/Message.java
+++ b/src/com/juick/json/Message.java
@@ -37,6 +37,9 @@ public class Message {
if (json.has("rid")) {
jmsg.RID = json.getInt("rid");
}
+ if (json.has("replyto")) {
+ jmsg.ReplyTo = json.getInt("replyto");
+ }
jmsg.Text = json.getString("body").replace(""", "\"");
jmsg.User = com.juick.json.User.parseJSON(json.getJSONObject("user"));
@@ -78,6 +81,9 @@ public class Message {
if (msg.RID > 0) {
json.put("rid", msg.RID);
}
+ if (msg.ReplyTo > 0) {
+ json.put("replyto", msg.ReplyTo);
+ }
if (msg.Text != null) {
json.put("body", msg.Text);
}