diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-15 20:54:59 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-15 20:54:59 +0100 |
commit | 3affdae21a2547f0d61546567ec57fd0a82ae4af (patch) | |
tree | 90b19e64d0041b84f0ad082d4f3a77775aae3787 /src/main/java/de/pixart/messenger/parser | |
parent | 1d536541b7c71dc397c650c439c8128062c22f27 (diff) |
respond to xep-0184 requests in muc pms
Diffstat (limited to 'src/main/java/de/pixart/messenger/parser')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/MessageParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java index b69b5312e..45472e278 100644 --- a/src/main/java/de/pixart/messenger/parser/MessageParser.java +++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java @@ -505,7 +505,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece } mXmppConnectionService.updateMessage(replacedMessage, uuid); mXmppConnectionService.getNotificationService().updateNotification(false); - if (mXmppConnectionService.confirmMessages() && remoteMsgId != null && !isForwarded && !isTypeGroupChat) { + if (mXmppConnectionService.confirmMessages() && (replacedMessage.trusted() || replacedMessage.getType() == Message.TYPE_PRIVATE) && remoteMsgId != null && !isForwarded && !isTypeGroupChat) { sendMessageReceipts(account, packet); } if (replacedMessage.getEncryption() == Message.ENCRYPTION_PGP) { @@ -560,7 +560,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece mXmppConnectionService.updateConversationUi(); } - if (mXmppConnectionService.confirmMessages() && message.trusted() && remoteMsgId != null && !isForwarded && !isTypeGroupChat) { + if (mXmppConnectionService.confirmMessages() && (message.trusted() || message.getType() == Message.TYPE_PRIVATE) && remoteMsgId != null && !isForwarded && !isTypeGroupChat) { sendMessageReceipts(account, packet); } |