aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/jabber/ws/XMPPConnection.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/juick/jabber/ws/XMPPConnection.java')
-rw-r--r--src/com/juick/jabber/ws/XMPPConnection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/juick/jabber/ws/XMPPConnection.java b/src/com/juick/jabber/ws/XMPPConnection.java
index b85c8bee..39815da5 100644
--- a/src/com/juick/jabber/ws/XMPPConnection.java
+++ b/src/com/juick/jabber/ws/XMPPConnection.java
@@ -86,7 +86,7 @@ public class XMPPConnection implements Runnable, Stream.StreamListener, Message.
synchronized (Main.clients) {
for (Iterator<SocketSubscribed> i = Main.clients.iterator(); i.hasNext();) {
SocketSubscribed s = i.next();
- if (s.VUID == uid_to) {
+ if (s.VUID == uid_to && s.MID == 0 && s.allMessages == false && s.allReplies == false) {
if (!s.sendByteBuffer(bbMsg)) {
i.remove();
}
@@ -122,7 +122,7 @@ public class XMPPConnection implements Runnable, Stream.StreamListener, Message.
synchronized (Main.clients) {
for (Iterator<SocketSubscribed> i = Main.clients.iterator(); i.hasNext();) {
SocketSubscribed s = i.next();
- if ((jmsg.Privacy >= 0 && (s.allMessages || s.UID == jmsg.User.UID)) || uids.contains(s.VUID)) {
+ if (s.MID == 0 && s.allReplies == false && ((jmsg.Privacy >= 0 && (s.allMessages || s.UID == jmsg.User.UID)) || uids.contains(s.VUID))) {
if (!s.sendByteBuffer(bbMsg)) {
i.remove();
}