add <x/> element to outgoing MUC PM

This commit is contained in:
Daniel Gultsch 2017-03-08 22:01:20 +01:00
parent 1f3be1597c
commit 6b72e18982
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public class MessageGenerator extends AbstractGenerator {
} else if (message.getType() == Message.TYPE_PRIVATE) { } else if (message.getType() == Message.TYPE_PRIVATE) {
packet.setTo(message.getCounterpart()); packet.setTo(message.getCounterpart());
packet.setType(MessagePacket.TYPE_CHAT); packet.setType(MessagePacket.TYPE_CHAT);
packet.addChild("x","http://jabber.org/protocol/muc#user");
if (this.mXmppConnectionService.indicateReceived()) { if (this.mXmppConnectionService.indicateReceived()) {
packet.addChild("request", "urn:xmpp:receipts"); packet.addChild("request", "urn:xmpp:receipts");
} }