respond to xep-0184 requests in muc pms

This commit is contained in:
Daniel Gultsch 2017-02-15 12:09:36 +01:00
parent c7e95d105c
commit 6e62b62b80

View File

@ -501,7 +501,11 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
} }
mXmppConnectionService.updateMessage(replacedMessage, uuid); mXmppConnectionService.updateMessage(replacedMessage, uuid);
mXmppConnectionService.getNotificationService().updateNotification(false); 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); sendMessageReceipts(account, packet);
} }
if (replacedMessage.getEncryption() == Message.ENCRYPTION_PGP) { if (replacedMessage.getEncryption() == Message.ENCRYPTION_PGP) {
@ -560,7 +564,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
} }
if (mXmppConnectionService.confirmMessages() if (mXmppConnectionService.confirmMessages()
&& message.trusted() && (message.trusted() || message.getType() == Message.TYPE_PRIVATE)
&& remoteMsgId != null && remoteMsgId != null
&& !isForwarded && !isForwarded
&& !isTypeGroupChat) { && !isTypeGroupChat) {