diff options
author | Vitaly Takmazov | 2016-11-12 10:59:12 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-12 11:06:00 +0300 |
commit | 294544ff5db35e6d16c59dc0fbbc0d3665fc6f41 (patch) | |
tree | d12e6ff4e77c6dbb96c7219ce4f3cc23cdc43675 | |
parent | 0689b5626eee806b90ba4313e5a91bc4f2ade9cb (diff) |
xmpp: fix reply quote
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java b/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java index 8514436d..c603a4d3 100644 --- a/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java +++ b/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionRouter.java @@ -191,7 +191,8 @@ public class ConnectionRouter extends Connection implements Runnable { com.juick.Message replyMessage = jmsg.ReplyTo > 0 ? MessagesQueries.getReply(xmpp.jdbc, jmsg.getMID(), jmsg.ReplyTo) : MessagesQueries.getMessage(xmpp.jdbc, jmsg.getMID()); replyTo = replyMessage.getUser().getUName(); - replyQuote = replyMessage.getReplyQuote(); + com.juick.Message fullReply = MessagesQueries.getReply(xmpp.jdbc, jmsg.getMID(), jmsg.getRID()); + replyQuote = fullReply.getReplyQuote(); String txt = "Reply by @" + jmsg.getUser().getUName() + ":\n" + replyQuote + "\n@" + replyTo + " "; String attachment = jmsg.getAttachmentURL(); |