diff options
Diffstat (limited to 'src')
-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 bb39496f7..386448f48 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 |