From 294544ff5db35e6d16c59dc0fbbc0d3665fc6f41 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 12 Nov 2016 10:59:12 +0300 Subject: xmpp: fix reply quote --- .../src/main/java/com/juick/components/s2s/ConnectionRouter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3