diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-10-10 22:12:22 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-10-10 22:12:22 +0200 |
commit | baf375fa2aae90a1a6d4f7db32ea41cf45ccbdba (patch) | |
tree | 081995a13f7e57702753ceeffc99ebc84e819d81 /src/main/java/de/pixart/messenger/services | |
parent | 2dcf3ae1bf86cbb526bc83c9d642157900a4f8f5 (diff) |
don't use sending state on muc pms without smacks
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 9c633e781..58d1a61af 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -1257,7 +1257,7 @@ public class XmppConnectionService extends Service { } if (packet != null) { - if (account.getXmppConnection().getFeatures().sm() || conversation.getMode() == Conversation.MODE_MULTI) { + if (account.getXmppConnection().getFeatures().sm() || (conversation.getMode() == Conversation.MODE_MULTI && message.getCounterpart().isBareJid())) { message.setStatus(Message.STATUS_UNSEND); } else { message.setStatus(Message.STATUS_SEND); @@ -1299,7 +1299,7 @@ public class XmppConnectionService extends Service { if (resend) { if (packet != null && addToConversation) { - if (account.getXmppConnection().getFeatures().sm() || conversation.getMode() == Conversation.MODE_MULTI) { + if (account.getXmppConnection().getFeatures().sm() || (conversation.getMode() == Conversation.MODE_MULTI && message.getCounterpart().isBareJid())) { markMessage(message, Message.STATUS_UNSEND); } else { markMessage(message, Message.STATUS_SEND); |