add <x/> element to outgoing MUC PM
This commit is contained in:
parent
1f3be1597c
commit
6b72e18982
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue