diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/juick/json/Message.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/juick/json/Message.java b/src/com/juick/json/Message.java index 18cc375ed..70beda88c 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); } |