diff options
author | 2016-05-09 16:15:06 +0300 | |
---|---|---|
committer | 2016-05-09 16:15:06 +0300 | |
commit | afe8a8e7c0c46ce490d0c5dd5ac67ae4b26712ed (patch) | |
tree | 83530cd798513e734bc349ea48c4607b4c6abb04 /src/main/java/com/juick | |
parent | 133b528cf04114eb564d1d9e1598818f58a62f7c (diff) |
fix reply user
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/PushComponent.java | 8 |
1 files changed, 5 insertions, 3 deletions
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 |