aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-09 16:15:06 +0300
committerGravatar Vitaly Takmazov2016-05-09 16:15:06 +0300
commitafe8a8e7c0c46ce490d0c5dd5ac67ae4b26712ed (patch)
tree83530cd798513e734bc349ea48c4607b4c6abb04
parent133b528cf04114eb564d1d9e1598818f58a62f7c (diff)
fix reply user
-rw-r--r--src/main/java/com/juick/PushComponent.java8
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