From afe8a8e7c0c46ce490d0c5dd5ac67ae4b26712ed Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 9 May 2016 16:15:06 +0300 Subject: fix reply user --- src/main/java/com/juick/PushComponent.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/PushComponent.java b/src/main/java/com/juick/PushComponent.java index bb39496f..386448f4 100644 --- a/src/main/java/com/juick/PushComponent.java +++ b/src/main/java/com/juick/PushComponent.java @@ -50,7 +50,10 @@ import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import java.io.IOException; import java.net.Socket; -import java.sql.*; +import java.sql.Connection; +import java.sql.Driver; +import java.sql.DriverManager; +import java.sql.SQLException; import java.util.*; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -168,8 +171,7 @@ public class PushComponent implements ServletContextListener, Stream.StreamListe boolean isReply = jmsg.getRID() > 0; int senderID = 0, recipientID = 0; if (isReply) { - com.juick.Message op = MessagesQueries.getMessage(sql, jmsg.getMID()); - senderID = op.getUser().getUID(); + senderID = jmsg.getUser().getUID(); } if (isPM) { // PM -- cgit v1.2.3